Beispiel #1
0
 public WindowSession(ApplicationSession applicationSession, InitializeOption initializeOption)
 {
     this.applicationSession = applicationSession;
     windowItemsMap = WindowItemsMap.Create(initializeOption, RectX.UnlikelyWindowPosition);
     if (windowItemsMap.LoadedFromFile) initializeOption.NonCached();
     this.initializeOption = initializeOption;
 }
Beispiel #2
0
 public virtual List<Window> DesktopWindows(Process process, ApplicationSession applicationSession)
 {
     return (from automationElement in FindAllWindowElements(process)
             let initializeOption = InitializeOption.NoCache
             select Create(automationElement, initializeOption, applicationSession.WindowSession(initializeOption)))
             .ToList();
 }
Beispiel #3
0
 private Application(Process process)
 {
     this.process = process;
     applicationSession = new ApplicationSession();
     applicationSession.Register(this);
     windowFactory = WindowFactory.Desktop;
 }
Beispiel #4
0
 public WindowSession(ApplicationSession applicationSession, InitializeOption initializeOption)
 {
     this.applicationSession = applicationSession;
     windowItemsMap          = WindowItemsMap.Create(initializeOption, RectX.UnlikelyWindowPosition);
     if (windowItemsMap.LoadedFromFile)
     {
         initializeOption.NonCached();
     }
     this.initializeOption = initializeOption;
 }