alielie
2025-11-21 3a471ae651b228231bebb3a2d438baa1d4ac0261
Plugin.TestResult/InfoWindow.xaml.cs
@@ -35,7 +35,8 @@
            set => Set(ref _dataSource, value);
        }
        private Chart electricChart;
        public InfoWindow(string title, ObservableCollection<Info> infos, Chart electricChart, int probeCount)
        private Chart vChart;
        public InfoWindow(string title, ObservableCollection<Info> infos, Chart electricChart, Chart vChart, int probeCount)
        {
            this.title = title;
            this.dataSource = infos;
@@ -53,6 +54,10 @@
            this.electricChart = electricChart;
            mainGrid.Children.Add(electricChart);
            Grid.SetRow(electricChart, 1);
            this.vChart = vChart;
            mainGrid.Children.Add(vChart);
            Grid.SetRow(vChart, 2);
        }
        private static int AlarmProbeCount;
@@ -119,16 +124,17 @@
        protected override void OnClosed(EventArgs e)
        {
            electricChart = null;
            vChart = null;
            mainGrid.Children.Clear();
            base.OnClosed(e);
        }
        private void Window_SizeChanged(object sender, SizeChangedEventArgs e)
        {
            if (electricChart != null)
            {
                electricChart.Height = this.ActualHeight * 0.3;
            }
            //if (electricChart != null)
            //{
            //    electricChart.Height = this.ActualHeight * 0.3;
            //}
        }
        private void Button_Click(object sender, RoutedEventArgs e)