private void btn_new_Click(object sender, EventArgs e) { FrmBaseDataManage frm = new FrmBaseDataManage(); frm.Text = "新增"; frm.DialogStatus = DialogStatus.New; if (frm.ShowDialog() == System.Windows.Forms.DialogResult.OK) { this.ucDgv_list.Search(1); } frm.Dispose(); }
private void btn_mod_Click(object sender, EventArgs e) { SysBaseData entity = this.GetCurrentRowData(); if (entity != null) { FrmBaseDataManage frm = new FrmBaseDataManage(); frm.Text = "修改"; frm.DialogStatus = DialogStatus.Modify; frm.DataEntity = entity; if (frm.ShowDialog() == System.Windows.Forms.DialogResult.OK) { this.ucDgv_list.Search(1); } frm.Dispose(); } }