添加用户信息插入逻辑
This commit is contained in:
commit
993d43951e
2 files changed
+18
-5
No files matched your search
@@ -75,11 +75,9 @@ namespace SunlightCentralizedControlManagement_SCCM_.WindowsView
|
||||
var button = sender as Button;
|
||||
DataRowView datarow = (DataRowView)button.Tag;
|
||||
var id= datarow.Row.Field<int>("ID");
|
||||
DataRow erwqer = MainWindow.InfData.Select("ID='" + id + "'").First();
|
||||
MainWindow.InfData.Select("ID='" + id + "'").First().Delete();
|
||||
|
||||
erwqer.Delete();
|
||||
Griddata.ItemsSource = MainWindow.InfData.DefaultView;
|
||||
|
||||
if (MainWindow.InfData.Rows.Count == 0) { this.Close(); }
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user