From b2721dbd8fe6f7a3901dc90cf4bdae9fd85db4d7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=A6=82=E6=84=8F=20=E5=BD=AD?= <2417589739@qq.com>
Date: Wed, 21 Sep 2022 15:32:24 +0800
Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
BPASmart.ConfigurationSoftware/Global.cs | 32 ---------------
.../MainWindowViewModel.cs | 10 ++---
.../{ => Model}/MainCanvasPageModel.cs | 0
.../NewProjectViewModel.cs | 4 +-
.../ProjectDataServer.cs | 40 -------------------
.../ProjectModel.cs | 35 ----------------
.../FileConfigModel.cs | 19 +++++++--
BPASmart.Model/LocalPar.cs | 5 +++
.../NewProjectModel.cs | 4 +-
BPASmart.VariableManager/App.xaml.cs | 4 +-
.../ViewModels/CommunicationSetViewModel.cs | 4 +-
.../Views/CommunicationSetView.xaml.cs | 2 +-
.../Views/VariableConfig.xaml.cs | 2 +-
13 files changed, 36 insertions(+), 125 deletions(-)
delete mode 100644 BPASmart.ConfigurationSoftware/Global.cs
rename BPASmart.ConfigurationSoftware/{ => Model}/MainCanvasPageModel.cs (100%)
delete mode 100644 BPASmart.ConfigurationSoftware/ProjectDataServer.cs
delete mode 100644 BPASmart.ConfigurationSoftware/ProjectModel.cs
rename {BPASmart.VariableManager => BPASmart.Model}/FileConfigModel.cs (52%)
rename BPASmart.ConfigurationSoftware/Model/NewDataModel.cs => BPASmart.Model/NewProjectModel.cs (85%)
diff --git a/BPASmart.ConfigurationSoftware/Global.cs b/BPASmart.ConfigurationSoftware/Global.cs
deleted file mode 100644
index f86d5c5e..00000000
--- a/BPASmart.ConfigurationSoftware/Global.cs
+++ /dev/null
@@ -1,32 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace BPASmart.ConfigurationSoftware
-{
- public class Global
- {
- ///
- /// 页面文件夹名称
- ///
- public const string PageDirectoryName = "Layouts";
-
-
- ///
- /// 项目路径
- ///
- public static string ProjectPath { get; set; } = string.Empty;
-
- ///
- /// 项目名称
- ///
- public static string ProjectName { get; set; }
-
- ///
- /// 变量管理器路径
- ///
- public static string VarManagerPath => $"{AppDomain.CurrentDomain.BaseDirectory}BPASmart.VariableManager.exe";
- }
-}
diff --git a/BPASmart.ConfigurationSoftware/MainWindowViewModel.cs b/BPASmart.ConfigurationSoftware/MainWindowViewModel.cs
index 23be174e..928e793c 100644
--- a/BPASmart.ConfigurationSoftware/MainWindowViewModel.cs
+++ b/BPASmart.ConfigurationSoftware/MainWindowViewModel.cs
@@ -65,7 +65,7 @@ namespace BPASmart.ConfigurationSoftware
ActionManage.GetInstance.Register(new Action