Exemple #1
0
 private void btn_Add_Click(object sender, EventArgs e)
 {
     SomerenDAL.Supervisor_DAO supervisor = new SomerenDAL.Supervisor_DAO();
     supervisor.SupervisorAdd(comboBoxAdd.Text);
     showPanel("Supervisors");
     comboBoxRemove.ResetText();
     comboBoxAdd.ResetText();
 }
Exemple #2
0
        private void btn_Remove_Click(object sender, EventArgs e)
        {
            if (MessageBox.Show("Are you sure you wish to remove this supervisor?", "Confirmation", MessageBoxButtons.YesNo) == DialogResult.Yes)
            {
                SomerenDAL.Supervisor_DAO supervisor = new SomerenDAL.Supervisor_DAO();
                supervisor.SupervisorRemove(comboBoxDelete.Text);
                showPanel("Supervisors");
            }
            else
            {
                return;
            }

            comboBoxAdd.ResetText();
            comboBoxRemove.ResetText();
        }