Beispiel #1
0
 private void btnSil_Click(object sender, EventArgs e)
 {
     if (txtSilYoneticiAdi.Text != "" && txtSilParola.Text != "")
     {
         string YoneticiAdi    = txtSilYoneticiAdi.Text;
         string YoneticiParola = txtSilParola.Text;
         bool   sonuc          = YoneticiORM.YoneticiSil(YoneticiAdi, YoneticiParola);
         if (sonuc)
         {
             MessageBox.Show("Silme işlemi yapıldı.");
         }
         else
         {
             MessageBox.Show("Bir hata oluştu.");
         }
     }
     else
     {
         MessageBox.Show("Lütfen gerekli alanları doldurun.");
     }
 }
Beispiel #2
0
 private void btnGirisYap_Click(object sender, EventArgs e)
 {
     if (txtYoneticiAdi.Text != "" && txtParola.Text != "")
     {
         string YoneticiAdi    = txtYoneticiAdi.Text;
         string YoneticiParola = txtParola.Text;
         bool   sonuc          = YoneticiORM.YoneticiGiris(YoneticiAdi, YoneticiParola);
         if (sonuc)
         {
             MasterForm m = new MasterForm();
             m.Show();
             this.Hide();
         }
         else
         {
             MessageBox.Show("Böyle bir yönetici bulunamadı.");
         }
     }
     else
     {
         MessageBox.Show("Lütfen gerekli alanları doldurun.");
     }
 }