示例#1
0
 public static GuiTabItem GetTabByName(AutomationElement parentWindow, string name)
 {
     if (_cachedTab == null || _cachedTab.AutomationId != name) {
         var res = parentWindow.FindChildByControlTypeAndName(ControlType.TabItem, name);
         _cachedTab = new GuiTabItem(res, name);
         _currentParentWindow = parentWindow;
     }
     return _cachedTab;
 }
示例#2
0
 public override void GetThisWindow()
 {
     _cachedTab = GetTabByAutomationId(_currentParentWindow, AutomationId);
 }
示例#3
0
 public static void InvalidateCache()
 {
     _cachedTab = null;
 }