Beispiel #1
0
 private void buttonStopPlay_Click(object sender, EventArgs e)
 {
     button_startPlay.Enabled    = false;
     button_stopPlay.Enabled     = false;
     button_pausePlay.Enabled    = false;
     button_open.Enabled         = true;
     trackBar1.Enabled           = false;
     textBox_frameLength.Enabled = true;
     timer2.Enabled = false; //You must first disable timer and then close the file
     playback.CloseFile();
 }
Beispiel #2
0
 private void Stop()
 {
     metroButton_startPlay.Enabled    = false;
     metroButton_stopPlay.Enabled     = false;
     metroButton_pausePlay.Enabled    = false;
     metroButton_open.Enabled         = true;
     trackBar1.Enabled                = false;
     metroTextBox_frameLength.Enabled = true;
     playing        = false;
     timer2.Enabled = false; //You must first disable timer and then close the file
     playback.CloseFile();
 }