Exemplo n.º 1
0
 /// <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;
 }
Exemplo n.º 2
0
 /// <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);
 }
Exemplo n.º 3
0
 /// <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));
 }