From 2e54b439c64e0adbb7e010243c1f33aa5fc5f503 Mon Sep 17 00:00:00 2001
From: alielie <alielie@git.com>
Date: 星期二, 11 三月 2025 14:08:57 +0800
Subject: [PATCH] 完善程序; Merge branch 'master' of http://58.211.88.246:3600/r/WPF/WPFProject

---
 Plugin.TestResult/ChartWindow.xaml.cs |   21 +++------------------
 1 files changed, 3 insertions(+), 18 deletions(-)

diff --git a/Plugin.TestResult/ChartWindow.xaml.cs b/Plugin.TestResult/ChartWindow.xaml.cs
index a49535f..c76d1bb 100644
--- a/Plugin.TestResult/ChartWindow.xaml.cs
+++ b/Plugin.TestResult/ChartWindow.xaml.cs
@@ -1,5 +1,4 @@
-锘縰sing System.ComponentModel;
-using System.Runtime.CompilerServices;
+锘縰sing Panuon.WPF.UI;
 using System.Windows;
 
 namespace Plugin.TestResult_WPF
@@ -7,27 +6,13 @@
     /// <summary>
     /// ChartWindow.xaml 鐨勪氦浜掗�昏緫
     /// </summary>
-    public partial class ChartWindow : Window, INotifyPropertyChanged
+    public partial class ChartWindow : WindowX
     {
-        #region ...
-        public event PropertyChangedEventHandler PropertyChanged;
-
-        public virtual void RaisePropertyChanged(string name)
-        {
-            PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(name));
-        }
-
-        public void RaiseAndSetIfchanged<T>(ref T old, T @new, [CallerMemberName] string propertyName = null)
-        {
-            old = @new;
-            if (propertyName != null) RaisePropertyChanged(propertyName);
-        }
-        #endregion
         private string _title;
         public string title
         {
             get => _title;
-            set => RaiseAndSetIfchanged(ref _title, value);
+            set => Set(ref _title, value);
         }
 
         public ChartWindow(string title)

--
Gitblit v1.9.1