private void btnAdd_Click(object sender, RoutedEventArgs e) { OperatorEditUI opEdit = new OperatorEditUI(); opEdit.IsInsert = true; if (opEdit.ShowDialog() == true) { LoadData(); } }
private void btnEidt_Click(object sender, RoutedEventArgs e) { Operator op = (Operator)gridOperator.SelectedItem; if (op == null) { MessageBox.Show("请选择要编辑的对象!"); return; } OperatorEditUI EditUI = new OperatorEditUI(); EditUI.IsInsert=false; EditUI.EditId=op.Id; if (EditUI.ShowDialog() == true) { LoadData(); } }
private void btnEidt_Click(object sender, RoutedEventArgs e) { Operator op = (Operator)gridOperator.SelectedItem; if (op == null) { MessageBox.Show("请选择要编辑的对象!"); return; } OperatorEditUI EditUI = new OperatorEditUI(); EditUI.IsInsert = false; EditUI.EditId = op.Id; if (EditUI.ShowDialog() == true) { LoadData(); } }