Пример #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            if (textBox1.Text != "" && textBox2.Text != "")
            {
                con.Open();
                SqlCommand kmt = new SqlCommand("select * from kullanici where kullanici_adi=@isim and parola=@sifre", con);
                //kmt.Connection = con;
                kmt.Parameters.AddWithValue("@isim", textBox1.Text);
                kmt.Parameters.AddWithValue("@sifre", textBox2.Text);
                object id = kmt.ExecuteScalar();
                con.Close();
                if (Convert.ToInt32(id) >= 1)
                {
                    ANA_MENÜ k = new ANA_MENÜ();
                    k.Show();
                }

                else
                {
                    MessageBox.Show("hatalı giriş");
                }
                this.Hide();
            }
            else
            {
                MessageBox.Show("boş alanları doldurnuz");
            }
        }
        private void button2_Click(object sender, EventArgs e)
        {
            ANA_MENÜ z = new ANA_MENÜ();

            z.Show();
            this.Hide();
        }
Пример #3
0
        private void button2_Click(object sender, EventArgs e)
        {
            ANA_MENÜ s = new ANA_MENÜ();

            s.Show();
            this.Close();
        }
        private void button2_Click(object sender, EventArgs e)
        {
            ANA_MENÜ k = new ANA_MENÜ();

            k.Show();
            this.Hide();
            //Aldigi_is l = new Aldigi_is();
            //l.Show();
            //this.Close();
        }