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 --- MediaBrowser.UI.Controls/BaseModalWindow.cs | 62 ----------------------------- 1 file changed, 62 deletions(-) delete mode 100644 MediaBrowser.UI.Controls/BaseModalWindow.cs (limited to 'MediaBrowser.UI.Controls/BaseModalWindow.cs') diff --git a/MediaBrowser.UI.Controls/BaseModalWindow.cs b/MediaBrowser.UI.Controls/BaseModalWindow.cs deleted file mode 100644 index 90bd8114f..000000000 --- a/MediaBrowser.UI.Controls/BaseModalWindow.cs +++ /dev/null @@ -1,62 +0,0 @@ -using System; -using System.Windows; - -namespace MediaBrowser.UI.Controls -{ - /// - /// Class BaseModalWindow - /// - public class BaseModalWindow : BaseWindow - { - /// - /// Shows the modal. - /// - /// The owner. - public void ShowModal(Window owner) - { - WindowStyle = WindowStyle.None; - ResizeMode = ResizeMode.NoResize; - ShowInTaskbar = false; - WindowStartupLocation = WindowStartupLocation.Manual; - AllowsTransparency = true; - - Width = owner.Width; - Height = owner.Height; - Top = owner.Top; - Left = owner.Left; - WindowState = owner.WindowState; - Owner = owner; - - ShowDialog(); - } - - /// - /// Called when [browser back]. - /// - protected override void OnBrowserBack() - { - base.OnBrowserBack(); - - CloseModal(); - } - - /// - /// Raises the event. This method is invoked whenever is set to true internally. - /// - /// The that contains the event data. - protected override void OnInitialized(EventArgs e) - { - base.OnInitialized(e); - - DataContext = this; - } - - /// - /// Closes the modal. - /// - protected virtual void CloseModal() - { - Close(); - } - } -} -- cgit v1.2.3