private void AcceptButton_Click(object sender, EventArgs e) //denne event dannes når der trykkes på godkend knappen { godkendKalibrering = new UIGodkendKalibrering(); var result = godkendKalibrering.ShowDialog(); // laver UIGodkendKalibrering til en modalform if (result == DialogResult.OK) //hvis der er trykket på godkend kalibrering gemmes kalibreringen og login vises. { currentBl.SaveCalibration(); Logout(); this.Hide(); login.Show(); currentBl.GetCalibrationList().Clear(); } if (result == DialogResult.Cancel) //hvis der trykkes på annuller lukkes modalformen { } }
private void AcceptButton_Click(object sender, EventArgs e) { godkendKalibrering = new UIGodkendKalibrering(); var result = godkendKalibrering.ShowDialog(); if (result == DialogResult.OK) { currentBl.SaveCalibration(); this.Hide(); login = new UILogin(currentBl); login.Show(); } if (result == DialogResult.Cancel) { } }
private void KontrolLogOutButton_Click(object sender, EventArgs e) { currentBl.StopThreads(true); if (monitorstartet == true) { monitor.Hide(); } if (startpressed == true) { currentBl.SaveInDatabase(); } currentBl.SaveComments(lines, houre, minute, second, ComplicationsCheck()); DefaultComments(); this.Hide(); login.Show(); }