forked from amkovkov/GranuSightSoftware2
1) remove unused components: camera view (due it causes segmentation faults), compute resources and all related, illuminator controller (due in useless without camera view), image storage service, temperature and humidity service 2) database schema - reduce tables references, features storing in records themselves in compressed form, add records creation and editing date and time, add separator comment column 3) analysis - rework of pipeline and ui, now database storing only raw data and all display values calculated from it 4) lights service - add reconnection if disconnected 5) add width and height command line arguments 6) fix some typos and other issues
28 lines
851 B
C#
28 lines
851 B
C#
using Avalonia.Controls;
|
|
|
|
using GSS2.ViewModels.AmineContent;
|
|
|
|
namespace GSS2.Views.AmineContent;
|
|
|
|
public partial class AnalysisView : UserControl
|
|
{
|
|
public AnalysisView()
|
|
{
|
|
InitializeComponent();
|
|
|
|
(DataContext as AnalysisViewModel)?.UpdateCharts += OnChartsUpdate;
|
|
DataContextChanged += (_, ea) => (DataContext as AnalysisViewModel)?.UpdateCharts += OnChartsUpdate;
|
|
}
|
|
|
|
private void OnChartsUpdate(object? sender, EventArgs ea)
|
|
{
|
|
ProcessedAreasHistogram.CoreChart.Update();
|
|
UnprocessedAreasHistogram.CoreChart.Update();
|
|
HotspotAreasHistogram.CoreChart.Update();
|
|
OpticalIntegralsHistogram.CoreChart.Update();
|
|
InnerStdDevsHistogram.CoreChart.Update();
|
|
InnerHeterogeneitiesHistogram.CoreChart.Update();
|
|
ParticleValuesHistogram.CoreChart.Update();
|
|
}
|
|
}
|