/// <summary> /// Selects the Button /// </summary> /// <param name="Button">The Button that will change its style</param> /// <param name="select">It determines if the button woll be selected</param> /// <remarks> /// If select is true thebutton will be selected, otherwise not. /// </remarks> public static void setSelected(System.Windows.Forms.ButtonBase Button, bool select) { if (select) { Button.Select(); } }