コード例 #1
0
        private void btn_new_Click(object sender, EventArgs e)
        {
            FrmClinihospitalDptManage frm = new FrmClinihospitalDptManage();

            frm.Text         = "新增";
            frm.DialogStatus = DialogStatus.New;

            if (frm.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                this.ucDgv_list.Search(1);
            }
            frm.Dispose();
        }
コード例 #2
0
        private void btn_mod_Click(object sender, EventArgs e)
        {
            ClinihospitalDpt entity = this.GetCurrentRowData();

            if (entity != null)
            {
                FrmClinihospitalDptManage frm = new FrmClinihospitalDptManage();
                frm.Text         = "修改";
                frm.DialogStatus = DialogStatus.Modify;
                frm.DataEntity   = entity;

                if (frm.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                {
                    this.ucDgv_list.Search(1);
                }
                frm.Dispose();
            }
        }