private void btn_new_Click(object sender, EventArgs e) { FrmClinicarHospitalManage frm = new FrmClinicarHospitalManage(); 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) { ClinicarHospital entity = this.GetCurrentRowData(); if (entity != null) { FrmClinicarHospitalManage frm = new FrmClinicarHospitalManage(); frm.Text = "修改"; frm.DialogStatus = DialogStatus.Modify; frm.DataEntity = entity; if (frm.ShowDialog() == System.Windows.Forms.DialogResult.OK) { this.ucDgv_list.Search(1); } frm.Dispose(); } }