예제 #1
0
 private void btnGiris_Click_1(object sender, EventArgs e)
 {
     if (txtKullaniciAdi.Text == "" || txtParola.Text == "")
     {
         MessageBox.Show("Lütfen boş alanları doldurunuz.");
     }
     else
     {
         reader = sql.prc_giris(txtKullaniciAdi.Text, txtParola.Text);
         if (reader.Read())
         {
             kullaniciadi = txtKullaniciAdi.Text;
             kullanici    = Convert.ToInt32(reader[0].ToString());
             frmHome home = new frmHome();
             this.Hide();
             home.Show();
         }
         else
         {
             MessageBox.Show("Hata");
         }
     }
 }