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/Variable.cs | 16 ++++++----------
1 files changed, 6 insertions(+), 10 deletions(-)
diff --git a/WPFProject/Models/Variable.cs b/Plugin.TestBuilder/Model/Variable.cs
similarity index 74%
rename from WPFProject/Models/Variable.cs
rename to Plugin.TestBuilder/Model/Variable.cs
index ea05141..f523f75 100644
--- a/WPFProject/Models/Variable.cs
+++ b/Plugin.TestBuilder/Model/Variable.cs
@@ -1,12 +1,8 @@
-锘縰sing System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Security.Policy;
-using System.Text;
-using System.Threading.Tasks;
+锘縰sing HMI.Core.Entity;
+using System;
using System.Xml.Serialization;
-namespace WPFProject.Models
+namespace Plugin.TestBuilder.Model
{
public class Variable : NotifyBase
{
@@ -17,7 +13,7 @@
public string Name
{
get { return _Name; }
- set => RaiseAndSetIfChanged(ref _Name, value);
+ set => Set(ref _Name, value);
}
/// <summary>
@@ -29,7 +25,7 @@
get { return _TypeName; }
set
{
- RaiseAndSetIfChanged(ref _TypeName, value);
+ Set(ref _TypeName, value);
Type = value == null ? null : Type.GetType(value);
}
}
@@ -44,7 +40,7 @@
public string ValueStr
{
get { return _ValueStr; }
- set => RaiseAndSetIfChanged(ref _ValueStr, value);
+ set => Set(ref _ValueStr, value);
}
/// <summary>
--
Gitblit v1.9.1