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.Plugins.DefaultTheme/DisplayPreferences/ViewMenuPage.xaml.cs | |
| parent | 33ed929b526acbda696f00f5966917ebd6a9ded2 (diff) | |
moved ui to it's own repo
Diffstat (limited to 'MediaBrowser.Plugins.DefaultTheme/DisplayPreferences/ViewMenuPage.xaml.cs')
| -rw-r--r-- | MediaBrowser.Plugins.DefaultTheme/DisplayPreferences/ViewMenuPage.xaml.cs | 94 |
1 files changed, 0 insertions, 94 deletions
diff --git a/MediaBrowser.Plugins.DefaultTheme/DisplayPreferences/ViewMenuPage.xaml.cs b/MediaBrowser.Plugins.DefaultTheme/DisplayPreferences/ViewMenuPage.xaml.cs deleted file mode 100644 index e164809cf..000000000 --- a/MediaBrowser.Plugins.DefaultTheme/DisplayPreferences/ViewMenuPage.xaml.cs +++ /dev/null @@ -1,94 +0,0 @@ -using MediaBrowser.Model.Entities; -using System.Windows; - -namespace MediaBrowser.Plugins.DefaultTheme.DisplayPreferences -{ - /// <summary> - /// Interaction logic for ViewMenuPage.xaml - /// </summary> - public partial class ViewMenuPage : BaseDisplayPreferencesPage - { - /// <summary> - /// Initializes a new instance of the <see cref="ViewMenuPage" /> class. - /// </summary> - public ViewMenuPage() - { - InitializeComponent(); - - radioCoverFlow.Click += radioCoverFlow_Click; - radioList.Click += radioList_Click; - radioPoster.Click += radioPoster_Click; - radioThumbstrip.Click += radioThumbstrip_Click; - } - - /// <summary> - /// Called when [loaded]. - /// </summary> - protected override void OnLoaded() - { - base.OnLoaded(); - - UpdateFields(); - } - - /// <summary> - /// Handles the Click event of the radioThumbstrip control. - /// </summary> - /// <param name="sender">The source of the event.</param> - /// <param name="e">The <see cref="RoutedEventArgs" /> instance containing the event data.</param> - void radioThumbstrip_Click(object sender, RoutedEventArgs e) - { - MainPage.DisplayPreferences.ScrollDirection = ScrollDirection.Horizontal; - MainPage.DisplayPreferences.ViewType = ViewTypes.ThumbStrip; - MainPage.NotifyDisplayPreferencesChanged(); - } - - /// <summary> - /// Handles the Click event of the radioPoster control. - /// </summary> - /// <param name="sender">The source of the event.</param> - /// <param name="e">The <see cref="RoutedEventArgs" /> instance containing the event data.</param> - void radioPoster_Click(object sender, RoutedEventArgs e) - { - MainPage.DisplayPreferences.ViewType = ViewTypes.Poster; - MainPage.NotifyDisplayPreferencesChanged(); - } - - /// <summary> - /// Handles the Click event of the radioList control. - /// </summary> - /// <param name="sender">The source of the event.</param> - /// <param name="e">The <see cref="RoutedEventArgs" /> instance containing the event data.</param> - void radioList_Click(object sender, RoutedEventArgs e) - { - MainPage.DisplayPreferences.ScrollDirection = ScrollDirection.Vertical; - MainPage.DisplayPreferences.ViewType = ViewTypes.List; - MainPage.NotifyDisplayPreferencesChanged(); - } - - /// <summary> - /// Handles the Click event of the radioCoverFlow control. - /// </summary> - /// <param name="sender">The source of the event.</param> - /// <param name="e">The <see cref="RoutedEventArgs" /> instance containing the event data.</param> - void radioCoverFlow_Click(object sender, RoutedEventArgs e) - { - MainPage.DisplayPreferences.ScrollDirection = ScrollDirection.Horizontal; - MainPage.DisplayPreferences.ViewType = ViewTypes.CoverFlow; - MainPage.NotifyDisplayPreferencesChanged(); - } - - /// <summary> - /// Updates the fields. - /// </summary> - private void UpdateFields() - { - var displayPreferences = MainPage.DisplayPreferences; - - radioCoverFlow.IsChecked = displayPreferences.ViewType == ViewTypes.CoverFlow; - radioList.IsChecked = displayPreferences.ViewType == ViewTypes.List; - radioPoster.IsChecked = displayPreferences.ViewType == ViewTypes.Poster; - radioThumbstrip.IsChecked = displayPreferences.ViewType == ViewTypes.ThumbStrip; - } - } -} |
