Esempio n. 1
0
 public static bool TryFind(WindowProperties prop)
 {
     Window w = new Window(prop);
     return w.Exists;
 }
Esempio n. 2
0
 public static bool TryFind(WindowProperties prop, out Window window)
 {
     window = new Window(prop);
     if (window.Exists)
         return true;
     window = null;
     return false;
 }
Esempio n. 3
0
 public static bool TryFind(WindowProperties prop, out Window window)
 {
     try
     {
         window = new Window(prop);
         return true;
     }
     catch (WindowNotFoundException)
     {
         window = null;
         return false;
     }
 }