Esempio n. 1
0
        private void ChangeStateInternal(State playbackState)
        {
            var os = this.CurrentState;
            var ns = playbackState;

            this.CurrentState = playbackState;
            if (os != ns && (this.PlaybackStateChanged != null))
            {
                var ot = ((PreviousCommand == null) ? "" : PreviousCommand.Tag);
                var nt = ((CurrentCommand == null) ? "" : CurrentCommand.Tag);

                var args = new PlaybackStateChangedEventArgs(ot, nt, os, ns);
                this.PlaybackStateChanged(this, args);
            }
        }
        private void ChangeStateInternal(State playbackState)
        {
            var os = CurrentState;
            var ns = playbackState;

            CurrentState = playbackState;
            if (os != ns && (PlaybackStateChanged != null))
            {
                var ot = ((PreviousCommand == null) ? "" : PreviousCommand.Tag);
                var nt = ((CurrentCommand == null) ? "" : CurrentCommand.Tag);

                var args = new PlaybackStateChangedEventArgs(ot, nt, os, ns);
                PlaybackStateChanged(this, args);
            }
        }