diff options
| author | LukePulverenti <luke.pulverenti@gmail.com> | 2013-02-23 10:58:08 -0500 |
|---|---|---|
| committer | LukePulverenti <luke.pulverenti@gmail.com> | 2013-02-23 10:58:08 -0500 |
| commit | 17c1fd576057bdd2d6aea517d733fe8af6e6b2ba (patch) | |
| tree | 660f47e816a8599aabdb7ee47f3cde64c72c3f4d /MediaBrowser.UI/Pages/BaseInternalPlayerPage.cs | |
| parent | 33ed929b526acbda696f00f5966917ebd6a9ded2 (diff) | |
moved ui to it's own repo
Diffstat (limited to 'MediaBrowser.UI/Pages/BaseInternalPlayerPage.cs')
| -rw-r--r-- | MediaBrowser.UI/Pages/BaseInternalPlayerPage.cs | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/MediaBrowser.UI/Pages/BaseInternalPlayerPage.cs b/MediaBrowser.UI/Pages/BaseInternalPlayerPage.cs deleted file mode 100644 index 3d651c4fa..000000000 --- a/MediaBrowser.UI/Pages/BaseInternalPlayerPage.cs +++ /dev/null @@ -1,49 +0,0 @@ -using MediaBrowser.UI.Controller; -using MediaBrowser.UI.Playback; -using System.Windows; - -namespace MediaBrowser.UI.Pages -{ - /// <summary> - /// Class BaseInternalPlayerPage - /// </summary> - public abstract class BaseInternalPlayerPage : BasePage - { - /// <summary> - /// Called when [loaded]. - /// </summary> - protected override void OnLoaded() - { - base.OnLoaded(); - - App.Instance.ApplicationWindow.WindowBackgroundContent.Visibility = Visibility.Collapsed; - App.Instance.ApplicationWindow.PageContent.Visibility = Visibility.Collapsed; - - UIKernel.Instance.PlaybackManager.PlaybackCompleted -= PlaybackManager_PlaybackCompleted; - UIKernel.Instance.PlaybackManager.PlaybackCompleted += PlaybackManager_PlaybackCompleted; - } - - /// <summary> - /// Handles the PlaybackCompleted event of the PlaybackManager control. - /// </summary> - /// <param name="sender">The source of the event.</param> - /// <param name="e">The <see cref="PlaybackEventArgs" /> instance containing the event data.</param> - void PlaybackManager_PlaybackCompleted(object sender, PlaybackStopEventArgs e) - { - App.Instance.ApplicationWindow.NavigateBack(); - } - - /// <summary> - /// Called when [unloaded]. - /// </summary> - protected override void OnUnloaded() - { - UIKernel.Instance.PlaybackManager.PlaybackCompleted -= PlaybackManager_PlaybackCompleted; - - base.OnUnloaded(); - - App.Instance.ApplicationWindow.PageContent.Visibility = Visibility.Visible; - App.Instance.ApplicationWindow.WindowBackgroundContent.Visibility = Visibility.Visible; - } - } -} |
