private void button1_Click(object sender, EventArgs e)
 {
     Code.DismissStudent.Dismiss(Convert.ToString(comboBox1.SelectedItem), true, label2);
     comboBox1.Text = "";
     FillCombobox(comboBox1);
     InfoStudentControl.FillDataGridView(InfoStudentControl.data);
 }
 private void registrateButton_Click(object sender, EventArgs e)
 {
     Code.RetistrateNewUser.Registrate(nameTextBox.Text, lnameTextBox.Text, loginTextBox.Text, passwordTextBox.Text, emailTextBox.Text, ReturnDate(comboBox2.SelectedItem.ToString(), (string)comboBox3.SelectedItem, comboBox4.SelectedItem.ToString()), phoneTextBox.Text, Convert.ToInt32(textBox1.Text), false, label11);
     dismissStudentControl.FillCombobox(dismissStudentControl.ComboBox);
     InfoStudentControl.FillDataGridView(InfoStudentControl.data);
 }