Exemplo n.º 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            DbEntitiyÜrünEntities db = new DbEntitiyÜrünEntities();
            var sorgu = from x in db.Tbl_Admin where x.KULLANICI == textBox1.Text && x.SIFRE == textBox2.Text select x;

            if (sorgu.Any())
            {
                FrmAnaform fr = new FrmAnaform();
                fr.Show();
                this.Hide();
            }
            else
            {
                MessageBox.Show("Hatalı Giriş");
            }
        }