| New file |
| | |
| | | using System;
|
| | | using System.Collections.Generic;
|
| | | using System.Linq;
|
| | | using System.Text;
|
| | | using System.Threading.Tasks;
|
| | |
|
| | | namespace WPFProject.Models
|
| | | {
|
| | | public class Param
|
| | | {
|
| | | }
|
| | | }
|
| | |
| | | { |
| | | 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 |
| | | { |
| | |
| | | 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; }
|
| | | }
|
| | | |
| | | } |
| | | } |
| | |
| | | { |
| | | public class Step : NotifyBase |
| | | { |
| | | private string _Name; |
| | | #region 字段 |
| | | |
| | | private int _Index;
|
| | | public int Index
|
| | | {
|
| | | get { return _Index; }
|
| | | set => RaiseAndSetIfChanged(ref _Index, value);
|
| | | }
|
| | |
|
| | | private string _Name; |
| | | public string Name |
| | | { |
| | | get { return _Name; } |
| | | set => RaiseAndSetIfChanged(ref _Name, value); |
| | | } |
| | | |
| | | private string _DllPath;
|
| | | public string DllPath
|
| | | {
|
| | | get { return _DllPath; }
|
| | | set => RaiseAndSetIfChanged(ref _DllPath, value);
|
| | | }
|
| | |
|
| | | private string _ClassName;
|
| | | public string ClassName
|
| | | {
|
| | | get { return _ClassName; }
|
| | | set => RaiseAndSetIfChanged(ref _ClassName, value);
|
| | | }
|
| | |
|
| | | private string _MethodName;
|
| | | public string MethodName
|
| | | {
|
| | | get { return _MethodName; }
|
| | | set => RaiseAndSetIfChanged(ref _MethodName, value);
|
| | | }
|
| | |
|
| | | private string _Description;
|
| | | public string Description
|
| | | {
|
| | | get { return _Description; }
|
| | | set => RaiseAndSetIfChanged(ref _Description, value);
|
| | | }
|
| | |
|
| | | #endregion
|
| | |
|
| | |
|
| | | } |
| | | } |
| New file |
| | |
| | | using System;
|
| | | using System.Collections.Generic;
|
| | | using System.Linq;
|
| | | using System.Security.Policy;
|
| | | using System.Text;
|
| | | using System.Threading.Tasks;
|
| | |
|
| | | 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 _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; }
|
| | |
|
| | | /// <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; }
|
| | | }
|
| | |
|
| | | }
|
| | | }
|
| | |
| | | <Compile Include="Models\CanvasPosition.cs" />
|
| | | <Compile Include="Models\FuncModel.cs" />
|
| | | <Compile Include="Models\NotifyBase.cs" />
|
| | | <Compile Include="Models\Param.cs" />
|
| | | <Compile Include="Models\Program.cs" />
|
| | | <Compile Include="Models\Sequence.cs" />
|
| | | <Compile Include="Models\Step.cs" />
|