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 --- .../DisplayPreferencesMenu.xaml.cs | 92 ---------------------- 1 file changed, 92 deletions(-) delete mode 100644 MediaBrowser.Plugins.DefaultTheme/DisplayPreferences/DisplayPreferencesMenu.xaml.cs (limited to 'MediaBrowser.Plugins.DefaultTheme/DisplayPreferences/DisplayPreferencesMenu.xaml.cs') diff --git a/MediaBrowser.Plugins.DefaultTheme/DisplayPreferences/DisplayPreferencesMenu.xaml.cs b/MediaBrowser.Plugins.DefaultTheme/DisplayPreferences/DisplayPreferencesMenu.xaml.cs deleted file mode 100644 index 04e65cd42..000000000 --- a/MediaBrowser.Plugins.DefaultTheme/DisplayPreferences/DisplayPreferencesMenu.xaml.cs +++ /dev/null @@ -1,92 +0,0 @@ -using MediaBrowser.UI.Controls; -using MediaBrowser.UI.Pages; -using System.Windows; - -namespace MediaBrowser.Plugins.DefaultTheme.DisplayPreferences -{ - /// - /// Interaction logic for DisplayPreferencesMenu.xaml - /// - public partial class DisplayPreferencesMenu : BaseModalWindow - { - /// - /// Gets or sets the main page. - /// - /// The main page. - public BaseListPage MainPage { get; set; } - /// - /// Gets or sets the folder id. - /// - /// The folder id. - public string FolderId { get; set; } - - /// - /// Initializes a new instance of the class. - /// - public DisplayPreferencesMenu() - { - InitializeComponent(); - - btnClose.Click += btnClose_Click; - } - - /// - /// Handles the Click event of the btnClose control. - /// - /// The source of the event. - /// The instance containing the event data. - void btnClose_Click(object sender, RoutedEventArgs e) - { - CloseModal(); - } - - /// - /// Closes the modal. - /// - protected override void CloseModal() - { - if (PageFrame.CanGoBack) - { - PageFrame.GoBackWithTransition(); - } - else - { - base.CloseModal(); - } - } - - /// - /// Called when [loaded]. - /// - protected override void OnLoaded() - { - base.OnLoaded(); - - PageFrame.Navigate(new MainPage { DisplayPreferencesWindow = this }); - } - - /// - /// Navigates to view menu. - /// - public void NavigateToViewMenu() - { - PageFrame.NavigateWithTransition(new ViewMenuPage { DisplayPreferencesWindow = this }); - } - - /// - /// Navigates to index menu. - /// - public void NavigateToIndexMenu() - { - PageFrame.NavigateWithTransition(new IndexMenuPage { DisplayPreferencesWindow = this }); - } - - /// - /// Navigates to sort menu. - /// - public void NavigateToSortMenu() - { - PageFrame.NavigateWithTransition(new SortMenuPage { DisplayPreferencesWindow = this }); - } - } -} -- cgit v1.2.3