コード例 #1
0
ファイル: UIItem.cs プロジェクト: huangzhichong/White
 public UIItem(AutomationElement automationElement, ActionListener actionListener)
 {
     if (null == automationElement) throw new NullReferenceException();
     this.automationElement = automationElement;
     this.actionListener = actionListener;
     factory = new PrimaryUIItemFactory(new AutomationElementFinder(automationElement));
 }
コード例 #2
0
ファイル: ScrollBar.cs プロジェクト: ritro/White
 protected ScrollBar(AutomationElement automationElement, ActionListener actionListener, ScrollBarButtonAutomationIds automationIds)
     : base(automationElement, actionListener)
 {
     this.automationIds = automationIds;
     var finder = new AutomationElementFinder(automationElement);
     primaryUIItemFactory = new PrimaryUIItemFactory(finder);
 }
コード例 #3
0
 public NonCachedContainerItemFactory(PrimaryUIItemFactory factory, ActionListener actionListener)
 {
     this.factory = factory;
     this.actionListener = actionListener;
 }