private void button1_Click(object sender, EventArgs e) { Ogrenci.MAIL1 = textBox1.Text; Ogrenci.SIFRE1 = textBox2.Text; int guncellenen = BOGRENCI.Update(Ogrenci); if (guncellenen == 1) { MessageBox.Show("Kayıt Güncellendi"); } }
private void fillEnterNote() { List <EDERSLER> dersler = new List <EDERSLER>(); dersler = BDERSLER.SelectList(); comboBox15.DataSource = dersler; comboBox15.DisplayMember = "DERS1"; comboBox15.ValueMember = "ID1"; List <EOGRENCI> ogrenciler = new List <EOGRENCI>(); ogrenciler = BOGRENCI.SelectList(); comboBox16.DataSource = ogrenciler; comboBox16.DisplayMember = "ADSOYAD1"; comboBox16.ValueMember = "ID1"; }
private void button1_Click(object sender, EventArgs e) { string numara = textBox1.Text; string sifre = textBox2.Text; ogrenci = new EOGRENCI(); ogrenci = BOGRENCI.Select(numara, sifre); ogretimGorevlisi = new EOGRETIMGOREVLISI(); ogretimGorevlisi = BOGRETIMGOREVLISI.Select(numara, sifre); if (ogrenci != null) { Form2 frm2 = new Form2(this); frm2.ShowDialog(); } else if (ogretimGorevlisi != null) { Form3 frm3 = new Form3(this); frm3.ShowDialog(); } else { MessageBox.Show("Okul Numaranız veya Şifreniz Hatalı!"); } }