private void btn_giris_Click(object sender, EventArgs e) { int sonuc = BLL.KullaniciKontrol(txt_KullaniciAdi.Text, txtSifre.Text); if (sonuc > 0) { AnaForm Form = new AnaForm(); Form.Show(); } else if (sonuc == -100) { MessageBox.Show("Form alanalarını Eksiksiz oalrak doldrunuz ."); } else { MessageBox.Show("Hatalı Kullanıcı"); } }
private void btnGiris_Click(object sender, EventArgs e) { int Sonuc = BLL.KullaniciKontrol(txtKullaniciAdi.Text, txtSifre.Text); if (Sonuc > 0) { AnaForm form = new AnaForm(); form.Show(); } else if (Sonuc == -100) { MessageBox.Show("Form alanlarını eksiksiz olarak doldurunuz"); } else { MessageBox.Show("Hatalı Kullanıcı"); } }