diff --git a/View/MonitorView.xaml b/View/MonitorView.xaml index 3891f3e..6fb06a4 100644 --- a/View/MonitorView.xaml +++ b/View/MonitorView.xaml @@ -56,6 +56,7 @@ + diff --git a/View/MonitorView.xaml.cs b/View/MonitorView.xaml.cs index 214c280..b9f92c4 100644 --- a/View/MonitorView.xaml.cs +++ b/View/MonitorView.xaml.cs @@ -93,7 +93,7 @@ namespace SunlightCentralizedControlManagement_SCCM_.View edit.IsEnabled = false; Paused.IsEnabled = false; Resume.IsEnabled = false; - } + }//恢复 private void ListViewItem_Paused(object sender, MouseButtonEventArgs e) { if (!string.IsNullOrEmpty(machine)) @@ -106,7 +106,7 @@ namespace SunlightCentralizedControlManagement_SCCM_.View MainWindowViewModel.MachiensTcpClient[index].SendAsync("SC821" + MainWindowViewModel.Selet_Machines(MainWindowViewModel.Machines, "SYSKEY", index) + dat_821.ToJsonString()); } - } + }//暂停 private void ListViewItem_Stop(object sender, MouseButtonEventArgs e) { if (!string.IsNullOrEmpty(machine)) @@ -117,25 +117,24 @@ namespace SunlightCentralizedControlManagement_SCCM_.View DataRow drEmployee = MainWindowViewModel.Machines.Select("NAME='" + machine + "'").First(); int index = Convert.ToInt16(drEmployee.Field("ID")); MainWindowViewModel.MachiensTcpClient[index].SendAsync("SC821" + MainWindowViewModel.Selet_Machines(MainWindowViewModel.Machines, "SYSKEY", index)+dat_821.ToJsonString()); - } - } + }//停止 private void ListViewItem_edit(object sender, MouseButtonEventArgs e) { - } + }//编辑 private void ListViewItem_Jump(object sender, MouseButtonEventArgs e) { - } + }//跳步 private void ListViewItem_Insert(object sender, MouseButtonEventArgs e) { - } + }//插入 private void ListViewItem_Delete(object sender, MouseButtonEventArgs e) { - } + }//删除 public void CountDown() { @@ -178,6 +177,7 @@ namespace SunlightCentralizedControlManagement_SCCM_.View { log.Text = null; } + if ((State_ == 101) || (State_ == 201) || (State_ == 202) || (State_ == 309))//获得细节信息 { MainWindowViewModel.MachiensTcpClient[index].SendAsync("SC831" + MainWindowViewModel.Selet_Machines(MainWindowViewModel.Machines, "SYSKEY", index));