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/Step.cs | 17 ++++++++---------
1 files changed, 8 insertions(+), 9 deletions(-)
diff --git a/WPFProject/Models/Step.cs b/Plugin.TestBuilder/Model/Step.cs
similarity index 79%
rename from WPFProject/Models/Step.cs
rename to Plugin.TestBuilder/Model/Step.cs
index e07959b..6dc9c6e 100644
--- a/WPFProject/Models/Step.cs
+++ b/Plugin.TestBuilder/Model/Step.cs
@@ -1,10 +1,9 @@
-锘縰sing System;
+锘縰sing HMI.Core.Entity;
using System.Collections.Generic;
using System.Reflection;
using System.Xml.Serialization;
-using HMI.Core.Api;
-namespace WPFProject.Models
+namespace Plugin.TestBuilder.Model
{
public class Step : NotifyBase
{
@@ -21,42 +20,42 @@
public int Index
{
get { return _Index; }
- set => RaiseAndSetIfChanged(ref _Index, value);
+ set => Set(ref _Index, value);
}
private string _Name;
public string Name
{
get { return _Name; }
- set => RaiseAndSetIfChanged(ref _Name, value);
+ set => Set(ref _Name, value);
}
private string _DllPath = "C:/Users/cheng/source/repos/WPFProject/VisionBuilder.Test/bin/Debug/VisionBuilder.Test.dll";
public string DllPath
{
get { return _DllPath; }
- set => RaiseAndSetIfChanged(ref _DllPath, value);
+ set => Set(ref _DllPath, value);
}
private string _ClassName = "VisionBuilder.Test.PluginOne";
public string ClassName
{
get { return _ClassName; }
- set => RaiseAndSetIfChanged(ref _ClassName, value);
+ set => Set(ref _ClassName, value);
}
private string _MethodName;
public string MethodName
{
get { return _MethodName; }
- set => RaiseAndSetIfChanged(ref _MethodName, value);
+ set => Set(ref _MethodName, value);
}
private string _Description;
public string Description
{
get { return _Description; }
- set => RaiseAndSetIfChanged(ref _Description, value);
+ set => Set(ref _Description, value);
}
#endregion
--
Gitblit v1.9.1