forked from amkovkov/GranuSightSoftware2
26 lines
745 B
C#
26 lines
745 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();
|
|
HotspotAreasHistogram.CoreChart.Update();
|
|
OpticalIntegralsHistogram.CoreChart.Update();
|
|
InnerStdDevsHistogram.CoreChart.Update();
|
|
InnerHeterogeneitiesHistogram.CoreChart.Update();
|
|
}
|
|
}
|