Пример #1
0
 public static void PreviewPause()
 {
     if (previewEventInstance != null)
     {
         bool paused;
         CheckResult(previewEventInstance.getPaused(out paused));
         CheckResult(previewEventInstance.setPaused(!paused));
     }
 }
Пример #2
0
 public static void PreviewPause()
 {
     if (previewEventInstance != null)
     {
         bool paused;
         CheckResult(previewEventInstance.getPaused(out paused));
         CheckResult(previewEventInstance.setPaused(!paused));
         previewState = paused ? PreviewState.Playing : PreviewState.Paused;
     }
 }