diff --git a/SlnMesnac.Config/DebugConfig.cs b/SlnMesnac.Config/DebugConfig.cs index 613e006..6f3bdfd 100644 --- a/SlnMesnac.Config/DebugConfig.cs +++ b/SlnMesnac.Config/DebugConfig.cs @@ -26,6 +26,16 @@ namespace SlnMesnac.Config } + /// + //系统运行状态;点击一键启动按钮和急停复位,改1,点击一键停止和急停改0;1的状态下根据缓存区自动启动设备 + /// + public string SystemStatus + { + get { return iniHelper.IniReadValue("system", "SystemStatus"); } + set { iniHelper.IniWriteValue("system", "SystemStatus", value); } + } + + /// ///缓存区重量 /// diff --git a/SlnMesnac.WPF/Model/RecipeManageCache.cs b/SlnMesnac.WPF/Model/RecipeManageCache.cs index 874c428..338b272 100644 --- a/SlnMesnac.WPF/Model/RecipeManageCache.cs +++ b/SlnMesnac.WPF/Model/RecipeManageCache.cs @@ -81,6 +81,15 @@ namespace SlnMesnac.WPF.Model } + /// + /// 系统运行状态;点击一键启动按钮和急停复位,改1,点击一键停止和急停改0;1的状态下根据缓存区自动启动设备 + /// + public string SystemStatus + { + get { return config.SystemStatus; } + set { config.SystemStatus = value; } + } + /// /// 当前缓存区监测重量 /// diff --git a/SlnMesnac.WPF/Page/DevMonitorPage.xaml b/SlnMesnac.WPF/Page/DevMonitorPage.xaml index 0e016c7..3f5fd37 100644 --- a/SlnMesnac.WPF/Page/DevMonitorPage.xaml +++ b/SlnMesnac.WPF/Page/DevMonitorPage.xaml @@ -18,17 +18,21 @@ - - -