Example #1
0
        private void dataGridViewControl2_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex < 0)
            {
                return;
            }

            int prog_id             = dataGridViewControl2["PROG_ID", e.RowIndex].Value.ToInt();
            ProgramAthPopupForm frm = new ProgramAthPopupForm(ath_grp_id, ath_grp_name, prog_id);

            if (frm.ShowDialog() == DialogResult.OK)
            {
                LoadData();
            }
        }
Example #2
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            if (ath_grp_id > 0)
            {
                ProgramAthPopupForm frm = new ProgramAthPopupForm(ath_grp_id, ath_grp_name);

                if (frm.ShowDialog() == DialogResult.OK)
                {
                    LoadData();
                }
            }
            else
            {
                MessageBox.Show("권한 그룹을 먼저 선택해주세요.");
            }
        }