Beispiel #1
0
        private void button11_Click(object sender, EventArgs e)
        {
            Ana_menu ANA = new Ana_menu();

            ANA.Show();
            this.Hide();
        }
        private void button3_Click_1(object sender, EventArgs e)
        {
            Ana_menu menü = new Ana_menu();

            menü.Show();
            this.Hide();
        }
Beispiel #3
0
        private void button1_Click(object sender, EventArgs e)
        {
            var context = new MarketDbContext();
            var cevap   = context.Satıcıs.Where(i => i.KullaniciAdi == txtKullaniciAdi.Text && i.Sifre == txtSifre.Text).FirstOrDefault();

            if (cevap != null)
            {
                Ana_menu ANA = new Ana_menu();
                ANA.Show();
                this.Hide();
            }
            else
            {
                MessageBox.Show("Kullanıcı Adı veya Şifrenizi yanlış girdiniz.");
                txtKullaniciAdi.Text = String.Empty;
                txtSifre.Text        = String.Empty;
            }

            /*Ana_menu ANA = new Ana_menu();
             * ANA.Show();
             * this.Hide();*/
        }