示例#1
0
        private void button1_Click(object sender, EventArgs e)
        {
            saticisayfası s = new saticisayfası();

            this.Hide();
            s.Show();
        }
示例#2
0
 private void btn_Giris_Click(object sender, EventArgs e)
 {
     cmd = new SqlCommand("SELECT * FROM satici where tc_kimlik='" + txt_tc_no.Text + "'and  ad='" + txt_ad.Text + "'", baglanti);
     baglanti.Open();
     dr = cmd.ExecuteReader();
     if (dr.Read())
     {
         saticisayfası y = new saticisayfası();
         this.Hide();
         y.ShowDialog();
     }
     else
     {
         MessageBox.Show("Kullanıcı adı ya da tc hatalıdır");
     }
     baglanti.Close();
 }