Exemplo n.º 1
0
 void conversation_Ended(object sender, EndedEventArgs e)
 {
     if (!e.Disposing)
     {
         log.Debug("My conversation ended");
     }
 }
Exemplo n.º 2
0
 void PlaybackDevice_PlayEnded(object sender, EndedEventArgs e)
 {
     Application.DoEvents();            //Ensure that all pending events finish their execution
     mHorizontalPPMeter.ForceFullFallback();
     mVerticalPPMeter.ForceFullFallback();
     if (mPCMInputStream != null)
     {
         mPCMInputStream.Close();
         mPCMInputStream = null;
     }
 }
Exemplo n.º 3
0
        void OperationEnded(object sender, EndedEventArgs e)
        {
            var operation = (DeliveryFileDownloadOperation)sender;

            operation.DeliveryFile.History.Add(DeliveryOperation.Retrieved, this.Instance.InstanceID);
            operation.DeliveryFile.Save();

            lock (_sync)
            {
                _endedCount++;
                if (_endedCount == this.Delivery.Files.Count)
                {
                    _waitForDownload.Set();
                }
            }
        }
        private void MyPlayer_MediaEnded(object sender, EndedEventArgs e)
        {
            Debug.Print("MyPlayer_MediaEnded");

            switch (e.StopReason)
            {
            case StopReason.Finished:
                if (true)
                {
                    Dispatcher.BeginInvoke(new Action(() => Playback_PlayNext()));
                    Dispatcher.BeginInvoke(new Action(() => Play_Executed(this, null)));
                }
                else
                {
                    //SetInterfaceOnMediaStop(true);
                }
                break;

                //    case StopReason.AutoStop:
                //        SetInterfaceOnMediaStop(false);
                //        break;

                //    case StopReason.UserStop:
                //        SetInterfaceOnMediaStop(true);
                //        StopAndPlay = false;
                //        break;

                //    case StopReason.Error:
                //        SetInterfaceOnMediaStop(false);
                //        ShowMediaEndedError(e);
                //        if (Prefs.AutoPlayNext && Prefs.OnErrorPlayNext && (RepeatAll || RepeatShuffle || _mediaToPlay < Playlist.Count))
                //        {
                //            PlayNextMedia();
                //        }
                //        else SetInterfaceOnMediaStop(true);
                //        break;
            }
        }
Exemplo n.º 5
0
 void myPlayer_MediaEnded(object sender, EndedEventArgs e)
 {
     coverArt.Image = null;
 }
Exemplo n.º 6
0
 private void Events_MediaEnded(object sender, EndedEventArgs e)
 {
     //   throw new NotImplementedException();
 }
Exemplo n.º 7
0
 public void AssertEndedOutOfDisposing(object x, EndedEventArgs y)
 {
     Assert.That(!y.Disposing);
 }
Exemplo n.º 8
0
 void ConversationEnded(object sender, EndedEventArgs e)
 {
     pausedConversations.Remove((IConversation)sender);
 }