Exemple #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;
            }
        }
Exemple #2
0
 public AdminList(adminMain adminMain)
 {
     InitializeComponent();
     this.adminMain = adminMain;
 }
Exemple #3
0
 public TestsAdmin(adminMain adminMain)
 {
     InitializeComponent();
     this.adminMain = adminMain;
 }