Beispiel #1
0
        private void button3_Click(object sender, EventArgs e)
        {
            PersonelGoruntule personelGoruntule = new PersonelGoruntule();

            personelGoruntule.Show();
            this.Hide();
        }
Beispiel #2
0
        //SqlCommand command;
        //SqlDataReader reader;


        public void GirisYap(string ad, string parola)
        {
            SqlCommand command = new SqlCommand("Select * From YoneticiGirisBilgiler where yoneticiGirisAd='" + ad + "' and yoneticiGirisSifre='" + parola + "'", baglanti);

            baglanti.Open();
            SqlDataReader reader = command.ExecuteReader();

            if (reader.Read())
            {
                PersonelGoruntule frm2 = new PersonelGoruntule();

                frm2.Show();
                this.Hide();
            }
            else
            {
                MessageBox.Show("Hatalı Giriş!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            baglanti.Close();
            command.Dispose();
        }