From 63f80f007b6b217e124a72bee63063c1868399ad Mon Sep 17 00:00:00 2001
From: chr <chrry550@163.com>
Date: 星期一, 04 三月 2024 11:24:32 +0800
Subject: [PATCH] 新增变量类型
---
Models/Program.cs | 93 +++++++++++++++++++++++++++++++---------------
1 files changed, 63 insertions(+), 30 deletions(-)
diff --git a/Models/Program.cs b/Models/Program.cs
index 8bea229..9e0f86c 100644
--- a/Models/Program.cs
+++ b/Models/Program.cs
@@ -1,30 +1,63 @@
-锘縰sing CommonModel;
-using System;
-using System.Collections.Generic;
-using System.Collections.ObjectModel;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace WPFProject.Models
-{
- public class Program : NotifyBase
- {
- private string _Name;
-
- public string Name
- {
- get { return _Name; }
- set => RaiseAndSetIfChanged(ref _Name, value);
- }
-
- private ObservableCollection<Sequence> _Sequences;
- public ObservableCollection<Sequence> Sequences
- {
- get { return _Sequences; }
- set => RaiseAndSetIfChanged(ref _Sequences, value);
- }
-
-
- }
-}
+锘縰sing System;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace WPFProject.Models
+{
+ public class Program : NotifyBase
+ {
+ /// <summary>
+ /// 绋嬪簭鍚�
+ /// </summary>
+ private string _Name;
+ public string Name
+ {
+ get { return _Name; }
+ set => RaiseAndSetIfChanged(ref _Name, value);
+ }
+
+ /// <summary>
+ /// 绋嬪簭鎵�闇�鍙傛暟
+ /// </summary>
+ private ObservableCollection<Variable> _Variables;
+ public ObservableCollection<Variable> Variables
+ {
+ get { return _Variables; }
+ set => RaiseAndSetIfChanged(ref _Variables, value);
+ }
+
+ /// <summary>
+ /// 搴忓垪闆嗗悎
+ /// </summary>
+ private ObservableCollection<Sequence> _Sequences;
+ public ObservableCollection<Sequence> Sequences
+ {
+ get { return _Sequences; }
+ set => RaiseAndSetIfChanged(ref _Sequences, value);
+ }
+
+ /// <summary>
+ /// 鎵�闇�鍙傛暟
+ /// </summary>
+ private Dictionary<string, Variable> _Vars;
+ public Dictionary<string, Variable> Vars
+ {
+ get { return _Vars; }
+ set { _Vars = value; }
+ }
+
+ /// <summary>
+ /// 璁$畻涓存椂鍙傛暟
+ /// </summary>
+ private Dictionary<string, Variable> _TempVars;
+ public Dictionary<string, Variable> TempVars
+ {
+ get { return _TempVars; }
+ set { _TempVars = value; }
+ }
+
+ }
+}
--
Gitblit v1.9.1