// Resumes videos if output window is present // If not, open a new output window and wait private void playButton_Click(object sender, EventArgs e) { if (outputForm != null) { outputForm.Show(); outputForm.resume(); } else { outputForm = new OutputForm(this); outputForm.Location = new Point(currentScreen.Bounds.X, currentScreen.Bounds.Y); outputForm.Size = new Size(currentScreen.Bounds.Width, currentScreen.Bounds.Height); outputForm.Show(); outputForm.resume(); } playButton.Enabled = false; stopButton.Enabled = true; pauseButton.Enabled = true; playEventGraphic.Enabled = true; playPlayerButton.Enabled = true; playLoopGraphic.Enabled = true; capturetimer.Enabled = true; }
// Stops and closes output window private void stopButton_Click(object sender, EventArgs e) { outputForm.Close(); outputForm = null; playButton.Enabled = true; stopButton.Enabled = false; pauseButton.Enabled = false; playEventGraphic.Enabled = false; playPlayerButton.Enabled = false; playLoopGraphic.Enabled = false; capturetimer.Enabled = false; previewPanel.BackgroundImage = null; updatePlayLabels("None", "None"); }