From 40213047b1cee48144c5a1eee1778ada6f609ca1 Mon Sep 17 00:00:00 2001
From: chr <chrry550@163.com>
Date: 星期四, 07 三月 2024 16:06:08 +0800
Subject: [PATCH] 优化InnerWindow的Resize;
---
Models/Variable.cs | 85 ++++++++++++++++++++++--------------------
1 files changed, 44 insertions(+), 41 deletions(-)
diff --git a/Models/Variable.cs b/Models/Variable.cs
index bb63f29..40d05c1 100644
--- a/Models/Variable.cs
+++ b/Models/Variable.cs
@@ -4,55 +4,58 @@
using System.Security.Policy;
using System.Text;
using System.Threading.Tasks;
+using System.Xml.Serialization;
namespace WPFProject.Models
{
public class Variable : NotifyBase
{
- /// <summary>
- /// 鍙傛暟鍚�
- /// </summary>
- private string _Name;
- public string Name
- {
- get { return _Name; }
- set => RaiseAndSetIfChanged(ref _Name, value);
- }
+ /// <summary>
+ /// 鍙傛暟鍚�
+ /// </summary>
+ private string _Name;
+ public string Name
+ {
+ get { return _Name; }
+ set => RaiseAndSetIfChanged(ref _Name, value);
+ }
- /// <summary>
- /// 鍙傛暟绫诲瀷
- /// </summary>
- private string _TypeName;
- public string TypeName
- {
- get { return _TypeName; }
- set {
- RaiseAndSetIfChanged(ref _TypeName, value);
- Type = value == null ? null : Type.GetType(value);
- }
- }
+ /// <summary>
+ /// 鍙傛暟绫诲瀷
+ /// </summary>
+ private string _TypeName;
+ public string TypeName
+ {
+ get { return _TypeName; }
+ set
+ {
+ RaiseAndSetIfChanged(ref _TypeName, value);
+ Type = value == null ? null : Type.GetType(value);
+ }
+ }
- public Type Type { get; private set; }
+ [XmlIgnore]
+ public Type Type { get; private set; }
- /// <summary>
- /// 鍊煎瓧绗�
- /// </summary>
- private string _ValueStr;
- public string ValueStr
- {
- get { return _ValueStr; }
- set => RaiseAndSetIfChanged(ref _ValueStr, value);
- }
+ /// <summary>
+ /// 鍊煎瓧绗�
+ /// </summary>
+ private string _ValueStr;
+ public string ValueStr
+ {
+ get { return _ValueStr; }
+ set => RaiseAndSetIfChanged(ref _ValueStr, value);
+ }
- /// <summary>
- /// 鍙傛暟鍊�
- /// </summary>
- private object _Value;
- public object Value
- {
- get { return _Value; }
- set { _Value = value; }
- }
+ /// <summary>
+ /// 鍙傛暟鍊�
+ /// </summary>
+ private object _Value;
+ public object Value
+ {
+ get { return _Value; }
+ set { _Value = value; }
+ }
- }
+ }
}
--
Gitblit v1.9.1