From 17c1fd576057bdd2d6aea517d733fe8af6e6b2ba Mon Sep 17 00:00:00 2001 From: LukePulverenti Date: Sat, 23 Feb 2013 10:58:08 -0500 Subject: moved ui to it's own repo --- .../DisplayPreferences/ViewMenuPage.xaml.cs | 94 ---------------------- 1 file changed, 94 deletions(-) delete mode 100644 MediaBrowser.Plugins.DefaultTheme/DisplayPreferences/ViewMenuPage.xaml.cs (limited to 'MediaBrowser.Plugins.DefaultTheme/DisplayPreferences/ViewMenuPage.xaml.cs') 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 -{ - /// - /// Interaction logic for ViewMenuPage.xaml - /// - public partial class ViewMenuPage : BaseDisplayPreferencesPage - { - /// - /// Initializes a new instance of the class. - /// - public ViewMenuPage() - { - InitializeComponent(); - - radioCoverFlow.Click += radioCoverFlow_Click; - radioList.Click += radioList_Click; - radioPoster.Click += radioPoster_Click; - radioThumbstrip.Click += radioThumbstrip_Click; - } - - /// - /// Called when [loaded]. - /// - protected override void OnLoaded() - { - base.OnLoaded(); - - UpdateFields(); - } - - /// - /// Handles the Click event of the radioThumbstrip control. - /// - /// The source of the event. - /// The instance containing the event data. - void radioThumbstrip_Click(object sender, RoutedEventArgs e) - { - MainPage.DisplayPreferences.ScrollDirection = ScrollDirection.Horizontal; - MainPage.DisplayPreferences.ViewType = ViewTypes.ThumbStrip; - MainPage.NotifyDisplayPreferencesChanged(); - } - - /// - /// Handles the Click event of the radioPoster control. - /// - /// The source of the event. - /// The instance containing the event data. - void radioPoster_Click(object sender, RoutedEventArgs e) - { - MainPage.DisplayPreferences.ViewType = ViewTypes.Poster; - MainPage.NotifyDisplayPreferencesChanged(); - } - - /// - /// Handles the Click event of the radioList control. - /// - /// The source of the event. - /// The instance containing the event data. - void radioList_Click(object sender, RoutedEventArgs e) - { - MainPage.DisplayPreferences.ScrollDirection = ScrollDirection.Vertical; - MainPage.DisplayPreferences.ViewType = ViewTypes.List; - MainPage.NotifyDisplayPreferencesChanged(); - } - - /// - /// Handles the Click event of the radioCoverFlow control. - /// - /// The source of the event. - /// The instance containing the event data. - void radioCoverFlow_Click(object sender, RoutedEventArgs e) - { - MainPage.DisplayPreferences.ScrollDirection = ScrollDirection.Horizontal; - MainPage.DisplayPreferences.ViewType = ViewTypes.CoverFlow; - MainPage.NotifyDisplayPreferencesChanged(); - } - - /// - /// Updates the fields. - /// - 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; - } - } -} -- cgit v1.2.3