76,7 → 76,7 |
bwThread.RunWorkerAsync(); |
progressForm = new Reimage_USB_Drive_Progress_Form(); |
progressForm.Show(); |
DebugText.appendText("Beginning the reimaging of USB Drives"); |
Debug.appendText("Beginning the reimaging of USB Drives"); |
} |
} |
else |
92,7 → 92,7 |
catch (Exception e) |
{ |
//MessageBox.Show(e.ToString(), "Error"); |
DebugText.appendText(e.ToString()); |
Debug.appendText(e.ToString()); |
MessageBox.Show("An error has occured. Please notify a supervisor to debug.", "Error"); |
} |
} |
217,7 → 217,7 |
catch (Exception ex) |
{ |
//MessageBox.Show(e.ToString(), "Error"); |
DebugText.appendText(ex.ToString()); |
Debug.appendText(ex.ToString()); |
MessageBox.Show("An error has occured. Please notify a supervisor to debug.", "Error"); |
} |
} |
274,7 → 274,7 |
{ |
threadsRunning = false; |
endTime = DateTime.Now; |
DebugText.appendText("Reimaging of USB Drives started at " + startTime.ToShortTimeString() + " and ended at " + endTime.ToShortTimeString()); |
Debug.appendText("Reimaging of USB Drives started at " + startTime.ToShortTimeString() + " and ended at " + endTime.ToShortTimeString()); |
MessageBox.Show("Operation was started at " + startTime.ToShortTimeString() + " and ended successfully at " + endTime.ToShortTimeString()); |
progressForm.closeForm(); |
} |
284,7 → 284,7 |
if (e.Cancelled) |
{ |
threadsRunning = false; |
DebugText.appendText("USB reimaging operation has been cancelled"); |
Debug.appendText("USB reimaging operation has been cancelled"); |
MessageBox.Show("Operation was canceled"); |
progressForm.Close(); |
} |
336,7 → 336,7 |
catch (Exception ex) |
{ |
//MessageBox.Show(e.ToString(), "Error"); |
DebugText.appendText(ex.ToString()); |
Debug.appendText(ex.ToString()); |
MessageBox.Show("An error has occured. Please notify a supervisor to debug.", "Error"); |
} |
} |