Exemplo n.º 1
0
 public static Task Shutdown()
 {
     return(Invoke(() =>
     {
         ShuttingDown(typeof(Windows), EventArgs.Empty);
         if (IsMiniWindowCreated)
         {
             MiniWindow.Close();
         }
         if (IsMainWindowCreated)
         {
             MainWindow.Close();
         }
         if (IsSettingsWindowCreated)
         {
             SettingsWindow.Close();
         }
         if (IsEqualizerWindowCreated)
         {
             EqualizerWindow.Close();
         }
         if (IsTempoWindowCreated)
         {
             TempoWindow.Close();
         }
         if (IsPlaylistManagerWindowCreated)
         {
             PlaylistManagerWindow.Close();
         }
         UIBehaviour.Shutdown();
         Reset();
     }));
 }
Exemplo n.º 2
0
        public static void Shutdown()
        {
            var dispatcher = Dispatcher;

            if (dispatcher != null)
            {
                dispatcher.BeginInvoke(
                    DispatcherPriority.ApplicationIdle,
                    new Action(() =>
                {
                    if (IsMiniWindowCreated)
                    {
                        MiniWindow.Close();
                    }
                    if (IsMainWindowCreated)
                    {
                        MainWindow.Close();
                    }
                    if (IsSettingsWindowCreated)
                    {
                        SettingsWindow.Close();
                    }
                    Reset();
                })
                    );
            }
        }
Exemplo n.º 3
0
 public static void SetIsGlassEnabled(MiniWindow source, bool value)
 {
     source.SetValue(IsGlassEnabledProperty, value);
 }
Exemplo n.º 4
0
 public static bool GetIsGlassEnabled(MiniWindow source)
 {
     return((bool)source.GetValue(IsGlassEnabledProperty));
 }