Esempio n. 1
0
        private void PauseButton_Click(object sender, RoutedEventArgs e)
        {
            Pausing?.Invoke(sender, e);

            this._mpp.Pause();

            this.PlayButton.IsEnabled  = true;
            this.PauseButton.IsEnabled = false;
            this.StopButton.IsEnabled  = true;

            this.IsPaused = true;
        }
Esempio n. 2
0
        protected void OnPause()
        {
            Assert(State == State_t.Running);

            Pausing?.Invoke(this);

            using (m_evPause = new AutoResetEvent(false))
            {
                State = State_t.Paused;
                m_evPause.WaitOne();
            }

            State = State_t.Running;
            Resumed?.Invoke(this);
        }
Esempio n. 3
0
 public static void Unpause()
 {
     instance._paused = false;
     Pausing?.Invoke(false); // Henrique - creating a delegate for controlling the animations on pause and unpausing
 }
Esempio n. 4
0
 public void Pause()
 {
     Pausing?.Invoke(this, EventArgs.Empty);
 }
Esempio n. 5
0
 protected void OnPause(object sender, EventArgs e)
 {
     Pausing?.Invoke(sender, e);
 }