/// <summary> /// Initializes a new instance of the UIControl class. /// </summary> /// <param name="uiPlatform"> /// The platform. /// </param> /// <param name="UIControlRole"> /// The control role. /// </param> /// <param name="ControlType"> /// Type of the control. /// </param> public UIControl(UIPlatform uiPlatform, UIControlRole UIControlRole, string ControlType) : this() { this.Platform = uiPlatform; this.ControlRole = UIControlRole; this.ControlType = ControlType; }
/// <summary> /// Gets user interface control. /// </summary> /// <param name="ControlRole"> /// The control role. /// </param> /// <param name="uiPlatform"> /// The platform. /// </param> /// <returns> /// The user interface control. /// </returns> public UIControl GetUIControl(UIControlRole ControlRole, UIPlatform uiPlatform) { foreach (var ctrl in this) { if (ctrl.ControlRole == ControlRole && ctrl.Platform == uiPlatform) { return(ctrl); } } return(null); }
/// <summary> /// Gets user interface control. /// </summary> /// <param name="ControlRole"> /// The control role. /// </param> /// <param name="uiPlatform"> /// The platform. /// </param> /// <returns> /// The user interface control. /// </returns> public UIControl GetUIControl(UIControlRole ControlRole, UIPlatform uiPlatform) { return(UIControls.GetUIControl(ControlRole, uiPlatform)); }