Ejemplo n.º 1
0
        private void btn_new_Click(object sender, EventArgs e)
        {
            FrmClinicarDptManage frm = new FrmClinicarDptManage();

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

            if (frm.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                this.ucDgv_list.Search(1);
            }
            frm.Dispose();
        }
Ejemplo n.º 2
0
        private void btn_mod_Click(object sender, EventArgs e)
        {
            ClinicarDpt entity = this.GetCurrentRowData();

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

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