Beispiel #1
0
        private void ugiris_button_Click(object sender, EventArgs e)
        {
            uyegiris uy = new uyegiris();

            uy.Show();
            this.Hide();
        }
Beispiel #2
0
        private void girisyap()
        {
            baglan.Open();
            SqlCommand    komut = new SqlCommand("Select *from KULLANICILAR", baglan);
            SqlDataReader oku   = komut.ExecuteReader();
            uyarı         uy    = new uyarı();

            while (oku.Read())
            {
                if (kullaniciadiTextBox.Text == oku["KULLANICI_ADI"].ToString() && sifreTextBox.Text == oku["ŞİFRE"].ToString() && oku["ROL_ID"].ToString() == "0")
                {
                    uyepanel yp = new uyepanel();
                    uy.l.Text = "Giriş Başarılı!";
                    uy.basariliuye();
                    uyepanel up = new uyepanel();
                    up.Show();
                    this.Close();
                    baglan.Close();
                    return;
                }
            }
            uy.hata("Hatalı giriş yaptınız!");
            uyegiris ug = new uyegiris();

            ug.Show();
            baglan.Close();
        }
Beispiel #3
0
        public bool basariliuye()
        {
            pictureBox1.Size            = new Size(120, 120);
            pictureBox1.BackgroundImage = Properties.Resources.başarıbeyaz;
            label1.Text = l.Text;
            uyegiris ug = new uyegiris();

            ug.Close();
            uyepanel uy = new uyepanel();

            uy.Show();
            this.ShowDialog();
            return(false);
        }