Esempio n. 1
0
 private void button3_Click(object sender, EventArgs e)
 {
     if (Giris.per_status == 1)
     {
         Form1 frm = new Form1();
         frm.Show();
         this.Hide();
     }
     else if (Giris.per_status == 0)
     {
         CalisanArayuzu ca = new CalisanArayuzu();
         ca.Show();
         this.Hide();
     }
 }
Esempio n. 2
0
        private void button2_Click(object sender, EventArgs e)
        {
            baglantı.Open();
            SqlCommand    sorgu = new SqlCommand("select * from Calisan where calisan_Eposta='" + textBox3.Text + "' and Calisan_Durum=0 AND Parola='" + textBox4.Text + "'", baglantı);
            SqlDataReader oku   = sorgu.ExecuteReader();

            if (oku.Read())
            {
                CalisanArayuzu clsa = new CalisanArayuzu();
                clsa.Show();
                this.Hide();
                // per_status = 0;
            }
            else
            {
                MessageBox.Show("Kullanıcı adı yada parola hatalı lütfen tekar deneyiniz. ");
            }
            baglantı.Close();
        }