Esempio n. 1
0
        private void button_güncelle_Click(object sender, EventArgs e)
        {
            Veritabani.Connect();

            ogr.OGRENCI_NO = textBoxogrnobul.Text;
            ogr            = Veritabani.OGRENCI_GETIR(ogr)[0];



            ogr.AD         = textBoxad.Text;
            ogr.SOYAD      = textBoxsoyad.Text;
            ogr.TCK_NO     = textBoxtc.Text;
            ogr.OGRENCI_NO = textBoxno.Text;
            ogr.CINSIYET   = comboBoxcinsiyet.Text == "ERKEK" ? "E" : "K";

            bool deger = Veritabani.OGRENCI_GUNCELLE(ogr);


            if (deger == true)
            {
                MessageBox.Show("günceleme başarılı");
            }

            Veritabani.Disconnect();
        }