添加用户信息相关
This commit is contained in:
commit
9ce3d975b4
3 files changed
+27
-18
No files matched your search
@@ -45,7 +45,7 @@ namespace SunlightCentralizedControlManagement_SCCM_.WindowsView
|
||||
}
|
||||
public void CountDown()
|
||||
{
|
||||
timers.Interval = TimeSpan.FromSeconds(10);//秒
|
||||
timers.Interval = TimeSpan.FromSeconds(5);//秒
|
||||
timers.Tick += DisTimer_S;
|
||||
timers.Start();
|
||||
}//时间周期初始化
|
||||
@@ -67,19 +67,26 @@ namespace SunlightCentralizedControlManagement_SCCM_.WindowsView
|
||||
synth.SpeakAsync(Properties.Resources.Machine + MainWindow.InfData.Rows[0][0].ToString() +
|
||||
MainWindow.InfData.Rows[0][1].ToString());//播报
|
||||
inf_cont = 0;
|
||||
}
|
||||
}
|
||||
|
||||
if (MainWindow.InfData.Rows.Count == 0) { this.Close(); }
|
||||
}
|
||||
|
||||
private void Button_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
var button = sender as Button;
|
||||
DataRowView datarow = (DataRowView)button.Tag;
|
||||
var id= datarow.Row.Field<int>("ID");
|
||||
MainWindow.InfData.Select("ID='" + id + "'").First().Delete();
|
||||
try
|
||||
{
|
||||
var button = sender as Button;
|
||||
DataRowView datarow = (DataRowView)button.Tag;
|
||||
var id = datarow.Row.Field<int>("ID");
|
||||
MainWindow.InfData.Select("ID='" + id + "'").First().Delete();
|
||||
|
||||
Griddata.ItemsSource = MainWindow.InfData.DefaultView;
|
||||
if (MainWindow.InfData.Rows.Count == 0) { this.Close(); }
|
||||
}
|
||||
Griddata.ItemsSource = MainWindow.InfData.DefaultView;
|
||||
if (MainWindow.InfData.Rows.Count == 0) { this.Close(); }
|
||||
}
|
||||
catch (Exception) { }
|
||||
|
||||
}
|
||||
|
||||
private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user