Ejemplo n.º 1
0
 private void LoginButton_Click(object sender, EventArgs e)
 {
     currentBl.employee.EmployeeID_ = EmployeeIDTextBox.Text;
     currentBl.employee.Password_   = PasswordTextBox.Text;
     if (currentBl.ValidateLogin(currentBl.employee) == true)
     {
         if (Profession(currentBl.employee.Profession_) == 1)
         {
             this.Hide();
             kontrolform = new UIKontrolform(currentBl);
             monitor     = new UIMonitor(currentBl);
             kontrolform.Show();
             monitor.Show();
             nulpunktsjustering = new UINulpunktsjustering();
             var result = nulpunktsjustering.ShowDialog();
             if (result == DialogResult.OK)
             {
                 MessageBox.Show("Nulpunktsjustering påbegyndes");
             }
         }
         if (Profession(currentBl.employee.Profession_) == 2)
         {
             kalibrering = new UIKalibrering(currentBl);
             kalibrering.Show();
             this.Hide();
         }
     }
     else
     {
         MessageBox.Show("Forkert medarbejder id eller kodeord. Prøv igen.");
     }
 }
Ejemplo n.º 2
0
 private void ShowMonitor_Click(object sender, EventArgs e)
 {
     monitor = new UIMonitor(currentBl);
     monitor.Show();
     monitorstartet = true;
 }