public static int ogr_no;//diger formda kullanacam idi ye gore verilere gridviewe aktaracam
 private void simpleButton1_Click(object sender, EventArgs e)
 {
     if (textEdit1.Text.Trim().Equals(""))
     {//ogrenci id si bos girmisse veya bosluk olarak girilmis ise
         MessageBox.Show("lütfen ogrenci numarasını bos girmeyiniz", "UYARI", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
     else
     {
         Ogrenci ogrenci = new Ogrenci();                //ogrencigiris metdou ogrenci sınıfından tur istediği için
         ogrenci.Ogrenci_id = int.Parse(textEdit1.Text); //idiyi ona atadım
         ogr_no             = ogrenci.Ogrenci_id;
         if (islemler.OgreniGiris(ogrenci))
         {//eger true donerse ogrenci not ekranına gececek
             OgrenciNotEkranı ogrenciNot = new OgrenciNotEkranı();
             ogrenciNot.Show();
             this.Hide();
         }
         else
         {
             MessageBox.Show("boyle bir ogrenci numarası kayıtlı(eklenmemis) değil .Lütfen kontrol ediniz ve ekledikten sonra tekrar deneyiniz", "UYARI", MessageBoxButtons.OK, MessageBoxIcon.Error);
         }
     }
 }