Beispiel #1
0
 public static void ShowWindow()
 {
     if (_instance == null)
     {
         lock (_locker) {
             if (_instance == null)
             {
                 _instance = new KernelsWindow();
                 _instance.Show();
             }
         }
     }
     else
     {
         _instance.ShowWindow(false);
     }
 }
Beispiel #2
0
 public static void ShowWindow()
 {
     UIThread.Execute(() => {
         if (_instance == null)
         {
             lock (_locker) {
                 if (_instance == null)
                 {
                     _instance = new KernelsWindow();
                     _instance.Show();
                 }
             }
         }
         else
         {
             _instance.ShowWindow(false);
         }
     });
 }
 public static void ShowWindow(string keyword = null)
 {
     if (_instance == null)
     {
         lock (_locker) {
             if (_instance == null)
             {
                 _instance = new KernelsWindow();
                 _instance.Show();
             }
         }
     }
     else
     {
         _instance.ShowWindow(false);
     }
     if (keyword != null)
     {
         _instance.Vm.Keyword = keyword;
     }
 }