Beispiel #1
0
 public static void Hide()
 {
     Application.Current.Dispatcher.BeginInvoke(DispatcherPriority.Normal, new Action(() =>
     {
         if (window != null)
         {
             window.Close();
             window = null;
         }
     }));
 }
Beispiel #2
0
        public static void Show()
        {
            Application.Current.Dispatcher.BeginInvoke(DispatcherPriority.Normal, new Action(() =>
            {
                if (window != null)
                {
                    Hide();
                }

                window = new DirectionPadWindow();
                window.Show();
            }));
        }