/// <summary> /// Creates a UI test control based on specified <see cref="CUITControls.WinControl"/>. /// </summary> /// <param name="sourceControl">The source control to base the UI test control on.</param> /// <returns> /// A UI test control based on specified <see cref="CUITControls.WinControl"/>. /// </returns> internal static ControlBase Create(CUITControls.WinControl sourceControl) { if (sourceControl == null) throw new ArgumentNullException("sourceControl"); string targetNamespace = typeof(WinControlFactory).Namespace; return Create(sourceControl, targetNamespace); }
/// <summary> /// Create a CUITe WinForms control based on the type of provided WinControl. /// </summary> /// <param name="sourceControl"></param> /// <returns></returns> public static IControlBase Create(CUITControls.WinControl sourceControl) { string targetNamespace = typeof(WinControlFactory).Namespace; return Create(sourceControl, targetNamespace); }