protected AutomationBase(IPropertyLibrary propertyLibrary, IEventLibrary eventLibrary, IPatternLibrary patternLibrary) { PropertyLibrary = propertyLibrary; EventLibrary = eventLibrary; PatternLibrary = patternLibrary; ConditionFactory = new ConditionFactory(propertyLibrary); OverlayManager = new WinFormsOverlayManager(); // Make sure all pattern ids are initialized var unused = PatternLibrary.AllForCurrentFramework; }
/// <summary> /// Creates a new <see cref="AutomationBase"/> instance. /// </summary> /// <param name="propertyLibrary">The property library to use.</param> /// <param name="eventLibrary">The event library to use.</param> /// <param name="patternLibrary">The pattern library to use.</param> /// <param name="textAttributeLibrary">The text attribute library to use.</param> protected AutomationBase(IPropertyLibrary propertyLibrary, IEventLibrary eventLibrary, IPatternLibrary patternLibrary, ITextAttributeLibrary textAttributeLibrary) { PropertyLibrary = propertyLibrary; EventLibrary = eventLibrary; PatternLibrary = patternLibrary; TextAttributeLibrary = textAttributeLibrary; ConditionFactory = new ConditionFactory(propertyLibrary); #if NETSTANDARD OverlayManager = new NullOverlayManager(); #else OverlayManager = new WinFormsOverlayManager(); #endif // Make sure all pattern ids are initialized var unused = PatternLibrary.AllForCurrentFramework; }
/// <summary> /// Creates a <see cref="ConditionFactory"/> with the given <see cref="IPropertyLibrary"/>. /// </summary> public ConditionFactory(IPropertyLibrary propertyLibrary) { _propertyLibrary = propertyLibrary; }