From 3a43febf276d907186808730e693215a805f8db5 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: Tue, 20 Sep 2022 09:44:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BD=8D=E6=9C=BA=E8=AE=BE=E8=AE=A1?= =?UTF-8?q?=E6=A1=86=E6=9E=B6=E6=90=AD=E5=BB=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BPASmart.ConfigurationSoftware.csproj | 2 +- .../BasicInformation.cs | 18 +++++++ BPASmart.ConfigurationSoftware/Global.cs | 32 +++++++++++ .../MainCanvasPageModel.cs | 16 ++++++ .../MainWindow.xaml | 12 +++-- .../MainWindowViewModel.cs | 53 +++++++++++++------ .../NewPageView.xaml | 17 ++++-- .../NewPageView.xaml.cs | 7 ++- .../NewProjectView.xaml | 9 +++- .../NewProjectViewModel.cs | 39 ++++++++++---- BPASmart.Server/BPASmart.Server.csproj | 2 +- BeDesignerSCADA/Controls/MainCanvasPanel.xaml | 2 +- BeDesignerSCADA/Themes/Styles.xaml | 28 +++++----- ComputerTestDemo/ComputerTestDemo.csproj | 2 +- 14 files changed, 189 insertions(+), 50 deletions(-) create mode 100644 BPASmart.ConfigurationSoftware/BasicInformation.cs create mode 100644 BPASmart.ConfigurationSoftware/Global.cs create mode 100644 BPASmart.ConfigurationSoftware/MainCanvasPageModel.cs diff --git a/BPASmart.ConfigurationSoftware/BPASmart.ConfigurationSoftware.csproj b/BPASmart.ConfigurationSoftware/BPASmart.ConfigurationSoftware.csproj index b5565f9c..444235a8 100644 --- a/BPASmart.ConfigurationSoftware/BPASmart.ConfigurationSoftware.csproj +++ b/BPASmart.ConfigurationSoftware/BPASmart.ConfigurationSoftware.csproj @@ -9,7 +9,7 @@ - + diff --git a/BPASmart.ConfigurationSoftware/BasicInformation.cs b/BPASmart.ConfigurationSoftware/BasicInformation.cs new file mode 100644 index 00000000..99d2958d --- /dev/null +++ b/BPASmart.ConfigurationSoftware/BasicInformation.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace BPASmart.ConfigurationSoftware +{ + public class BasicInformation + { + /// + /// 项目上次保存的目录 + /// + public string ProjectDefaultPath { get; set; } = string.Empty; + + + } +} diff --git a/BPASmart.ConfigurationSoftware/Global.cs b/BPASmart.ConfigurationSoftware/Global.cs new file mode 100644 index 00000000..f86d5c5e --- /dev/null +++ b/BPASmart.ConfigurationSoftware/Global.cs @@ -0,0 +1,32 @@ +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/MainCanvasPageModel.cs b/BPASmart.ConfigurationSoftware/MainCanvasPageModel.cs new file mode 100644 index 00000000..e0720a0d --- /dev/null +++ b/BPASmart.ConfigurationSoftware/MainCanvasPageModel.cs @@ -0,0 +1,16 @@ +using BeDesignerSCADA.Controls; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace BPASmart.ConfigurationSoftware +{ + public class MainCanvasPageModel + { + public MainCanvasPanel MainCanvasPanelModel { get; set; } + public string PageName { get; set; } + + } +} diff --git a/BPASmart.ConfigurationSoftware/MainWindow.xaml b/BPASmart.ConfigurationSoftware/MainWindow.xaml index df41ee7b..ba4e971b 100644 --- a/BPASmart.ConfigurationSoftware/MainWindow.xaml +++ b/BPASmart.ConfigurationSoftware/MainWindow.xaml @@ -121,7 +121,7 @@