Exemplo n.º 1
0
        private void geri_button_Click(object sender, EventArgs e)
        {
            this.Close();
            yoneticipanel yo = new yoneticipanel();

            yo.Show();
        }
        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() == "1")
                {
                    this.Close();
                    yoneticipanel yp = new yoneticipanel();
                    uy.l.Text = "Giriş Başarılı!";
                    uy.basariliyonetici();
                    this.Close();
                    baglan.Close();
                    return;
                }
            }

            uy.hata("Hatalı giriş yaptınız!");
            this.Close();
            yoneticiGiris yg = new yoneticiGiris();

            yg.Show();
            baglan.Close();
        }
        private void button4_Click(object sender, EventArgs e)
        {
            this.Close();
            yoneticipanel yp = new yoneticipanel();

            yp.Show();
        }
Exemplo n.º 4
0
        public bool basariliyonetici()
        {
            pictureBox1.Size            = new Size(120, 120);
            pictureBox1.BackgroundImage = Properties.Resources.başarıbeyaz;
            label1.Text = l.Text;

            /*yoneticiGiris yo = new yoneticiGiris();
             * yo.Close();*/
            yoneticipanel yp = new yoneticipanel();

            yp.Show();
            this.ShowDialog();
            return(true);
        }