private void startButton_Click(object sender, EventArgs e) { if (!File.Exists(outputSaveDialog?.FileName)) { MessageBox.Show("You have to specify the output file before you can start."); return; } WindowState = FormWindowState.Minimized; PrintMonitor.Start(); PrintMonitor.OnJobStatusChange += PrintMonitor_OnJobStatusChange; }
private void stopButton_Click(object sender, EventArgs e) { PrintMonitor.Stop(); PrintMonitor.OnJobStatusChange -= PrintMonitor_OnJobStatusChange; }