private void button2_Click_1(object sender, EventArgs e)
        {
            anamenü geri3 = new anamenü();

            this.Hide();
            geri3.Show();
        }
        private void pictureBox6_Click(object sender, EventArgs e)
        {
            anamenü anaekran = new anamenü();

            this.Hide();
            anaekran.Show();
        }
Example #3
0
        private void button1_Click(object sender, EventArgs e)
        {
            anamenü geri4 = new anamenü();

            geri4.Show();
            this.Hide();
        }
Example #4
0
        private void pictureBox6_Click(object sender, EventArgs e)
        {
            anamenü geri = new anamenü();

            this.Hide();
            geri.Show();
        }
        private void button2_Click(object sender, EventArgs e)
        {
            string ad    = textBox1.Text;
            string sifre = textBox1.Text;

            con = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=kullanici.mdb");
            cmd = new OleDbCommand();
            con.Open();
            cmd.Connection  = con;
            cmd.CommandText = "SELECT * FROM kullanici where k_ad='" + textBox1.Text + "' AND k_sifre='" + textBox2.Text + "'";
            dr = cmd.ExecuteReader();
            if (dr.Read())
            {
                anamenü f1 = new anamenü();
                f1.Show();
                this.Hide();
            }
            else
            {
                MessageBox.Show("Kullanıcı adı ya da şifre yanlış");
                textBox1.Clear();
                textBox2.Clear();
            }

            con.Close();
        }
        private void button1_Click(object sender, EventArgs e)
        {
            idnumber();
            OleDbCommand cmd = new OleDbCommand("delete from sipariş", con);

            con.Open();
            cmd.ExecuteNonQuery();
            con.Close();
            anamenü geri = new anamenü();

            this.Hide();
            geri.Show();
        }
        private void button2_Click(object sender, EventArgs e)
        {
            veriaktar();
            stokdurumu();



            MessageBox.Show("Teşekkürler! Afiyet Olsun Yine Bekleriz");
            OleDbCommand cmd2 = new OleDbCommand("delete from sipariş", con);

            con.Open();
            cmd2.ExecuteNonQuery();
            con.Close();


            anamenü geri = new anamenü();

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