private void metroButtonGraduateAdd_Click(object sender, EventArgs e)
        {
            GraduateEntityForm form = new GraduateEntityForm();

            form.Text          = "Добавление выпускника";
            form.btnAddvisible = true;
            form.Show();
        }
 private void metroButtonGraduateEdit_Click(object sender, EventArgs e)
 {
     try
     {
         int gid                 = Convert.ToInt32(dataGridViewGraduate.SelectedCells[0].Value.ToString());
         var graduate            = db.Graduates.Find(gid);
         GraduateEntityForm form = new GraduateEntityForm();
         form.Text           = "Изменение выпускника";
         form.btnEditvisible = true;
         form.GraduateId     = graduate.GraduateId;
         form.gsname         = graduate.GraduateSurName;
         form.gfname         = graduate.GraduateFirstName;
         form.gsecname       = graduate.GraduateSecondName;
         form.gadress        = graduate.GraduateAdress;
         form.gtel           = graduate.GraduateTelephone;
         form.ggender        = graduate.GraduateGender;
         form.gbirth         = graduate.GraduateBirthDate;
         form.Show();
     }
     catch (Exception gg)
     {
         MessageBox.Show(gg.Message, "Ошибка");
     }
 }