public TableScrollBars(AutomationElementFinder finder, ActionListener actionListener, TableVerticalScrollOffset tableVerticalScrollOffset) { AutomationElement verticalScrollElement = finder.Child(AutomationSearchCondition.ByControlType(ControlType.Pane).OfName(UIItemIdAppXmlConfiguration.Instance.TableVerticalScrollBar)); verticalScrollBar = (verticalScrollElement == null) ? (IVScrollBar) new NullVScrollBar() : new TableVerticalScrollBar(verticalScrollElement, actionListener, tableVerticalScrollOffset); AutomationElement horizontalScrollElement = finder.Child(AutomationSearchCondition.ByControlType(ControlType.Pane).OfName(UIItemIdAppXmlConfiguration.Instance.TableHorizontalScrollBar)); horizontalScrollBar = (horizontalScrollElement == null) ? (IHScrollBar) new NullHScrollBar() : new TableHorizontalScrollBar(horizontalScrollElement, actionListener); }
public TableVerticalScrollBar(AutomationElement automationElement, ActionListener actionListener, TableVerticalScrollOffset offset) : base(automationElement, actionListener) { this.offset = offset; }