예제 #1
0
        private void Button1_Click(object sender, EventArgs e)
        {
            string user = txt_ogrkullaniciadi.Text;
            string pass = txt_ogrsifre.Text;


            cmd = new MySqlCommand();
            con.Open();
            cmd.Connection  = con;
            cmd.CommandText = "SELECT * FROM ogretmen where ogrkullaniciadi='" + txt_ogrkullaniciadi.Text + "' AND ogrsifre='" + txt_ogrsifre.Text + "'";
            dr = cmd.ExecuteReader();
            if (dr.Read())
            {
                ogr_panel_secim ogr_panel_secim = new ogr_panel_secim();

                ogr_panel_secim.kullaniciAdi = txt_ogrkullaniciadi.Text;
                ogr_panel_secim.Show();
                this.Hide();
            }
            else
            {
                MessageBox.Show("Hatalı Kullanıcı Adı veya Şifre Girdiniz.");
            }
            con.Close();
        }
예제 #2
0
        private void Button1_Click(object sender, EventArgs e)
        {
            ogr_panel_secim ogr_panel_secim = new ogr_panel_secim();

            ogr_panel_secim.Show();
            this.Hide();
        }