private void BtnOgrKaydet_Click(object sender, EventArgs e) { //ogrencı sıfre kaydetme TBL_OGRAYARLAR komut = new TBL_OGRAYARLAR(); komut.AYARLAROGRID = Convert.ToInt32(TxtOgrID.Text); komut.OGRSIFRE = TxtSıfre.Text; db.TBL_OGRAYARLAR.Add(komut); db.SaveChanges(); MessageBox.Show("Şifre Kaydedildi.", "Bilgi", MessageBoxButtons.OK, MessageBoxIcon.Information); ogrlistele(); temizle(); }
private void BtnKaydet_Click(object sender, EventArgs e) { TBL_VELILER veli = new TBL_VELILER(); veli.VELIANNE = TxtAnneAd.Text; veli.VELIBABA = TxtBabaAd.Text; veli.VELITEL1 = MskTelefon1.Text; veli.VELITEL2 = MskTelefon2.Text; veli.VELIMAIL = TxtMail.Text; db.TBL_VELILER.Add(veli); db.SaveChanges(); MessageBox.Show("Veli Kaydedildi.", "Bilgi", MessageBoxButtons.OK, MessageBoxIcon.Information); listele(); temizle(); }