Exemplo n.º 1
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();
 }
Exemplo n.º 2
0
 public WindowSession(ApplicationSession applicationSession, InitializeOption initializeOption)
 {
     this.applicationSession = applicationSession;
     windowItemsMap = WindowItemsMap.Create(initializeOption, RectX.UnlikelyWindowPosition);
     if (windowItemsMap.LoadedFromFile) initializeOption.NonCached();
     this.initializeOption = initializeOption;
 }
Exemplo n.º 3
0
 private Application(Process process)
 {
     this.process = process;
     applicationSession = new ApplicationSession();
     applicationSession.Register(this);
     windowFactory = WindowFactory.Desktop;
 }