From 6bcafc823e836ecd5790f87178a906333699f868 Mon Sep 17 00:00:00 2001
From: alielie <alielie@git.com>
Date: 星期四, 10 四月 2025 10:46:47 +0800
Subject: [PATCH] 优化插件结构;
---
Plugin.TestBuilder/Model/FuncModel.cs | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/WPFProject/Models/FuncModel.cs b/Plugin.TestBuilder/Model/FuncModel.cs
similarity index 61%
rename from WPFProject/Models/FuncModel.cs
rename to Plugin.TestBuilder/Model/FuncModel.cs
index c247261..fe58c6b 100644
--- a/WPFProject/Models/FuncModel.cs
+++ b/Plugin.TestBuilder/Model/FuncModel.cs
@@ -1,6 +1,7 @@
-锘縰sing System.Collections.ObjectModel;
+锘縰sing HMI.Core.Entity;
+using System.Collections.ObjectModel;
-namespace WPFProject.Models
+namespace Plugin.TestBuilder.Model
{
public class FuncModel : NotifyBase
{
@@ -9,7 +10,7 @@
public string Name
{
get { return _Name; }
- set => RaiseAndSetIfChanged(ref _Name, value);
+ set => Set(ref _Name, value);
}
private ObservableCollection<FuncModel> _Children;
@@ -17,7 +18,7 @@
public ObservableCollection<FuncModel> Children
{
get { return _Children; }
- set => RaiseAndSetIfChanged(ref _Children, value);
+ set => Set(ref _Children, value);
}
}
--
Gitblit v1.9.1