Пример #1
0
        void EditClick(object sender, EventArgs e)
        {
            GF.selected_id = Convert.ToInt32(btn_dgv.DGV.SelectedRows[0].Cells["emp_dept_id"].Value);

            using (config_department_manage managePage = new config_department_manage())
            {
                managePage.Owner           = this;
                managePage.manage_btn.Text = "UPDATE";
                managePage.Text            = "EDIT DEPARTMENT";

                managePage.ShowDialog();
            }
        }
Пример #2
0
        void AddClick(object sender, EventArgs e)
        {
            GF.selected_id = 0;

            using (config_department_manage managePage = new config_department_manage())
            {
                managePage.Owner           = this;
                managePage.manage_btn.Text = "ADD";
                managePage.Text            = "ADD DEPARTMENT";

                managePage.ShowDialog();
            }
        }