Example #1
0
        private void Add(object sender, EventArgs e)
        {
            if (((MainForm)this.MdiParent).ActiveMdiChild == this)
            {
                EmployeeVO employeeVO       = this.GetEmployee();
                AuthorityGroupPopupForm frm = new AuthorityGroupPopupForm(employeeVO);

                if (frm.ShowDialog() == DialogResult.OK)
                {
                    LoadData();
                }
            }
        }
Example #2
0
        private void dataGridViewControl1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex < 0)
            {
                return;
            }

            EmployeeVO employeeVO       = this.GetEmployee();
            AuthorityGroupPopupForm frm = new AuthorityGroupPopupForm(employeeVO, ath_grp_id);

            if (frm.ShowDialog() == DialogResult.OK)
            {
                LoadData();
            }
        }