/// <summary> /// 新增 /// </summary> private void DoCreateFork() { FrmForkEdit frmEdit = new FrmForkEdit(); frmEdit.DataSourceChanged += OnCreateChanage; frmEdit.ShowDialog(); }
/// <summary> /// 编辑 /// </summary> private void ShowEditFork() { ForkEntity editEntity = SelectedForkRow; if (editEntity == null) { MsgBox.Warn("没有要修改的数据。"); return; } FrmForkEdit frmEdit = new FrmForkEdit(editEntity); frmEdit.DataSourceChanged += OnEditChanage; frmEdit.ShowDialog(); }