Exemple #1
0
 public void ResumePeriod()
 {
     if (currentPeriod == null)
     {
         string msg = Catalog.GetString("Period recording not started");
         Config.GUIToolkit.WarningMessage(msg, this);
         return;
     }
     Log.Debug("Resume period at currentTime=", CurrentCaptureTime.ToMSecondsString());
     currentTimeNode      = currentPeriod.Start(CurrentCaptureTime);
     pausebutton.Visible  = true;
     resumebutton.Visible = false;
     Capturing            = true;
 }
Exemple #2
0
 public void PausePeriod()
 {
     if (currentPeriod == null)
     {
         string msg = Catalog.GetString("Period recording not started");
         App.Current.Dialogs.WarningMessage(msg, this);
         return;
     }
     Log.Debug("Pause period at currentTime=", CurrentCaptureTime.ToMSecondsString());
     currentPeriod.Stop(CurrentCaptureTime);
     currentTimeNode      = null;
     pausebutton.Visible  = false;
     resumebutton.Visible = true;
     Capturing            = false;
 }