예제 #1
0
 private void LibraryButton_MouseClicked(object sender, MouseButtonEventArgs e)
 {
     if (MW.MediaInformationRoot.Visibility == Visibility.Visible)
     {
         Animation.SwitchVisibility sv = new Animation.SwitchVisibility();
         sv.Animate(Config.Current.Animation[Enums.Animation.Default], MW.LibraryRoot, MW.MediaInformationRoot);
     }
     else
     {
         MW.Manager.SetTopPage();
     }
 }
예제 #2
0
 private void PlayingStatus_MouseClick(object sender, MouseButtonEventArgs e)
 {
     if (MW.Renderer != null)
     {
         if (MW.Renderer.StreamStatus != NWrapper.Audio.Status.Stopped)
         {
             Animation.SwitchVisibility sv = new Animation.SwitchVisibility();
             if (MW.MediaInformationRoot.Visibility == Visibility.Hidden)
             {
                 sv.Animate(Config.Current.Animation[Enums.Animation.Default], MW.MediaInformationRoot, MW.LibraryRoot);
                 RaiseEvent(LAPP.Player.Receiver.Action.MediaInformation, true);
             }
             else
             {
                 sv.Animate(Config.Current.Animation[Enums.Animation.Default], MW.LibraryRoot, MW.MediaInformationRoot);
                 RaiseEvent(LAPP.Player.Receiver.Action.MediaInformation, false);
             }
         }
     }
 }
예제 #3
0
        internal void StopFile(bool ClearImage)
        {
            Dialogs.LogWindow.Append("Stop");
            MC.MediaStateButton.MediaState = MVPUC.Buttons.MediaStateButton.State.Play;

            DisposeRenderer();

            if (ClearImage)
            {
                Utils.Animation.SwitchVisibility sv = new Utils.Animation.SwitchVisibility();
                if (MediaInformationRoot.Visibility == Visibility.Visible)
                {
                    sv.Animate(Config.Current.Animation[Enums.Animation.Default], LibraryRoot, MediaInformationRoot);
                }

                if (bgImage.Image != null)
                {
                    Utils.Animation.Visible va      = new Utils.Animation.Visible();
                    EventHandler            handler = null;
                    handler = (sender, e) =>
                    {
                        bgImage.Image = null;
                        Dialogs.LogWindow.Append("Image Removed");
                        va.AnimationCompleted -= handler;
                    };
                    va.AnimationCompleted += handler;

                    va.Animate(Config.Current.Animation[Enums.Animation.Default], bgImage, Visibility.Hidden);
                }
                MC.HideStatus();

                SetPlaybackState(NAudio.Wave.PlaybackState.Stopped);
            }

            SeekBar.Value = SeekBar.Minimum;
            if (TaskbarManager != null)
            {
                TaskbarManager.HideButtons();
            }
        }