/// <summary> /// 新增 /// </summary> private void DoCreateArea() { FrmOrgEdit frmEdit = new FrmOrgEdit(); frmEdit.DataSourceChanged += OnCreateChanage; frmEdit.ShowDialog(); }
/// <summary> /// 编辑 /// </summary> private void ShowEditRow() { OrgEntity editEntity = SelectedRow; if (editEntity == null) { MsgBox.Warn("请选中要修改的行。"); return; } FrmOrgEdit frmEdit = new FrmOrgEdit(editEntity); frmEdit.DataSourceChanged += OnEditChanage; frmEdit.ShowDialog(); }