示例#1
0
        public override void New(object sender, EventArgs e)
        {
            DepartmentInsUp popup = new DepartmentInsUp(DepartmentInsUp.EditMode.Insert, null);

            if (popup.ShowDialog() == DialogResult.OK)
            {
                frm.NoticeMessage        = Resources.AddDone;
                dgvDepartment.DataSource = null;
                LoadGridView();
            }
        }
示例#2
0
        public override void Modify(object sender, EventArgs e)
        {
            if (dgvDepartment.SelectedRows.Count < 1)
            {
                frm.NoticeMessage = Resources.ModEmpty;
            }
            else
            {
                DepartmentInsUp popup = new DepartmentInsUp(DepartmentInsUp.EditMode.Update, item);

                if (popup.ShowDialog() == DialogResult.OK)
                {
                    frm.NoticeMessage        = Resources.ModDone;
                    dgvDepartment.DataSource = null;
                    LoadGridView();
                }
            }
        }