public static AutomationElement ValueLineWindowAcceptCapture(this AutomationElement element) { using (var vlwp = new ValueLineBoxProxy <string>(element)) { return(vlwp.AcceptCapture()); } }
public static AutomationElement ValueLineWindowAcceptCapture <T>(this AutomationElement element, T value) { using (var vlwp = new ValueLineBoxProxy <T>(element)) { vlwp.Value = value; return(vlwp.AcceptCapture()); } }