/// <summary>
 /// 暂停/恢复
 /// </summary>
 public override void Pause()
 {
     if (bIsPause)
     {
         worker.RunWorkerAsync();
     }
     else
     {
         worker.CancelAsync();
     }
     //暂停播放事件
     iplay.PauseEvent(bIsPause);
     bIsPause = !bIsPause;
 }
예제 #2
0
 /// <summary>
 /// 暂停/恢复
 /// </summary>
 public override void Pause()
 {
     if (bIsPause)
     {
         if (!worker.IsBusy)
         {
             worker.RunWorkerAsync();
         }
     }
     else
     {
         worker.CancelAsync();
     }
     //暂停播放事件
     if (iplay != null)
     {
         iplay.PauseEvent(bIsPause);
     }
     bIsPause = !bIsPause;
 }