/// <summary> /// 增加 /// </summary> private void DoCreateCtl() { FrmCtlEdit frmCtlEdit = new FrmCtlEdit(); frmCtlEdit.DataSourceChanged += OnCreateChanage; frmCtlEdit.ShowDialog(); }
private void DoEditCtl() { SoContainerLocation changeEntity = SelectedRow; if (changeEntity == null) { MsgBox.Warn("请选择要修改的托盘位!"); return; } FrmCtlEdit frmCtlEdit = new FrmCtlEdit(changeEntity); frmCtlEdit.DataSourceChanged += OnCreateChanage; frmCtlEdit.ShowDialog(); }