private void LblAdmin_Click(object sender, EventArgs e) { this.Hide(); adminLogin login = new adminLogin(); login.ShowDialog(); this.Close(); }
private void Login_Click2(object sender, RoutedEventArgs e) { adminLogin admin = new adminLogin(); adminOn = admin.ShowDialog(); if (adminOn == true) { AdminWorkscreen displayAdmin = new AdminWorkscreen(); displayAdmin.ShowDialog(); } }