Beispiel #1
0
 private void btnMonitor_Click(object sender, EventArgs e)
 {
     if (!Application.OpenForms.OfType<Login>().Any())
     {
         Login m = new Login();
         m.management = false;
         m.Show();
     }
 }
Beispiel #2
0
 /// <summary>
 /// Opens the monitor interface with login request
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnMonitor_Click(object sender, EventArgs e)
 {
     // Procceed of no login prompt is currently open
     if (!Application.OpenForms.OfType<Login>().Any())
     {
         Login m = new Login();
         m.management = false;
         m.Show();
     }
 }