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