Exemple #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="control"></param>
        internal override void setSpecificControlProperties(Control control)
        {
            MgControlType type = GuiMgControl.Type;

            ControlUtils.SetContentAlignment(control, ContentAlignment);
            if (Text != null)
            {
                GuiUtilsBase.setText(control, Text);
            }
            if (GuiMgControl.IsHyperTextButton())
            {
                MgLinkLabel mgLinkLabel = ((MgLinkLabel)control);

                mgLinkLabel.SetHoveringColor(HoveringFGColor, HoveringBGColor);
                mgLinkLabel.SetVisitedColor(VisitedFGColor, VisitedBGColor);
                mgLinkLabel.LinkVisited = Visited;
                mgLinkLabel.RefreshLinkColor();
            }
        }