private void button1_Click(object sender, EventArgs e)
 {
     if (int.Parse(dgStudent[3, dgStudent.SelectedRows[0].Index].Value.ToString()) == 0)
     {
         studentController.DelEnvictedById(int.Parse(dgStudent[0, dgStudent.SelectedRows[0].Index].Value.ToString()));
         studentController.SetInhabitedById(int.Parse(dgStudent[0, dgStudent.SelectedRows[0].Index].Value.ToString()));
         InhabitedAndEvictedForm_Load(sender, e);
     }
     else
     if (int.Parse(dgStudent[3, dgStudent.SelectedRows[0].Index].Value.ToString()) == 1)
     {
         studentController.DelEnvictedById(int.Parse(dgStudent[0, dgStudent.SelectedRows[0].Index].Value.ToString()));
         studentController.DelInhabitedById(int.Parse(dgStudent[0, dgStudent.SelectedRows[0].Index].Value.ToString()));
         InhabitedAndEvictedForm_Load(sender, e);
     }
 }