| | |
| | | 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; |
| | |
| | | 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; |
| | |
| | | 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) |