From 3a471ae651b228231bebb3a2d438baa1d4ac0261 Mon Sep 17 00:00:00 2001
From: alielie <alielie@git.com>
Date: 星期五, 21 十一月 2025 08:57:52 +0800
Subject: [PATCH] 优化
---
Plugin.TestResult/InfoWindow.xaml.cs | 16 +++++++++++-----
1 files changed, 11 insertions(+), 5 deletions(-)
diff --git a/Plugin.TestResult/InfoWindow.xaml.cs b/Plugin.TestResult/InfoWindow.xaml.cs
index 58b265e..5e402af 100644
--- a/Plugin.TestResult/InfoWindow.xaml.cs
+++ b/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)
--
Gitblit v1.9.1