Esempio n. 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            informsysEntities context = new informsysEntities();
            Admins            admins  = context.Admins.Where(p => p.username == user.Text).FirstOrDefault();

            if (admins != null && admins.passwords == password.Text)
            {
                this.Close();
                adminMain adminMain = new adminMain();
                adminMain.Show();
            }
            else
            {
                atten.Visible = true;
            }
        }
Esempio n. 2
0
 private void bunifuFlatButton1_Click(object sender, EventArgs e)
 {
     this.Hide();
     adminMain.Show();
 }