Exemplo n.º 1
0
        private void btn_YoneticiSayfasi_Click(object sender, EventArgs e)
        {
            yoneticisayfasi y = new yoneticisayfasi();

            this.Hide();
            y.ShowDialog();
        }
Exemplo n.º 2
0
 private void btn_GirisYap_Click(object sender, EventArgs e)
 {
     cmd = new SqlCommand("SELECT * FROM yonetici where yoneticiad='" + txt_KullaniciAdi.Text + "'and  sifre='" + txt_Parola.Text + "' ", baglanti);
     baglanti.Open();
     dr = cmd.ExecuteReader();
     if (dr.Read())
     {
         yoneticisayfasi y = new yoneticisayfasi();
         this.Hide();
         y.ShowDialog();
     }
     else
     {
         MessageBox.Show("Kullanıcı adı ya da şifreniz hatalıdır");
     }
     baglanti.Close();
 }