예제 #1
0
        public T Convert <T>(AutomationBase automation, object value)
        {
            if (this.converter == null)
            {
                return((T)value);
            }

            return((T)this.converter(automation, value));
        }
 protected StructureChangedEventHandlerBase(AutomationBase automation, Action <AutomationElement, StructureChangeType, int[]> callAction)
     : base(automation)
 {
     this.callAction = callAction;
 }
 protected PropertyChangedEventHandlerBase(AutomationBase automation, Action <AutomationElement, PropertyId, object> callAction)
     : base(automation)
 {
     this.callAction = callAction;
 }
예제 #4
0
 protected FocusChangedEventHandlerBase(AutomationBase automation, Action <AutomationElement> callAction)
     : base(automation)
 {
     this.callAction = callAction;
 }
 protected BasicAutomationElementBase(AutomationBase automation)
 {
     this.Automation = automation;
     this.Properties = new AutomationElementPropertyValues(this);
 }
예제 #6
0
 protected BasicEventHandlerBase(AutomationBase automation, Action <AutomationElement, EventId> callAction)
     : base(automation)
 {
     this.callAction = callAction;
 }