Ejemplo n.º 1
0
        public void SetMenuFontSelectionType(FontSelectionType mode)
        {
            MenuFontSelectionType = mode;
            MenuFontName          = "Segoe UI";
            switch (mode)
            {
            case FontSelectionType.Default:
                MenuFontSize = 12f;
                break;

            case FontSelectionType.Normal:
                MenuFontSize = 10f;
                break;

            case FontSelectionType.Large:
                MenuFontSize = 14f;
                break;

            case FontSelectionType.VeryLarge:
                MenuFontSize = 16f;
                break;

            default:
                MenuFontSize = 12f;
                break;
            }
        }
Ejemplo n.º 2
0
        public Font GetMenuFont(FontSelectionType mode)
        {
            var   menuFontName = "Segoe UI";
            float menuFontSize;

            switch (mode)
            {
            case FontSelectionType.Default:
                menuFontSize = 12f;
                break;

            case FontSelectionType.Normal:
                menuFontSize = 10f;
                break;

            case FontSelectionType.Large:
                menuFontSize = 14f;
                break;

            case FontSelectionType.VeryLarge:
                menuFontSize = 16f;
                break;

            default:
                menuFontSize = 12f;
                break;
            }
            return(new Font(menuFontName, menuFontSize, FontStyle.Regular, GraphicsUnit.Point));
        }
Ejemplo n.º 3
0
        public void SetFontSelectionType(FontSelectionType mode)
        {
            FontSelectionType = mode;
            FontName          = "Tahoma";
            switch (mode)
            {
            case FontSelectionType.Default:
                FontSize = 8.25f;
                break;

            case FontSelectionType.Normal:
                FontSize = 10f;
                break;

            case FontSelectionType.Large:
                FontSize = 12f;
                break;

            case FontSelectionType.VeryLarge:
                FontSize = 14f;
                break;

            default:
                FontSize = 8.25f;
                break;
            }
        }
Ejemplo n.º 4
0
        public Font GetFontType(FontSelectionType mode)
        {
            var   fontName = "Tahoma";
            float fontSize;

            switch (mode)
            {
            case FontSelectionType.Default:
                fontSize = 8.25f;
                break;

            case FontSelectionType.Normal:
                fontSize = 10f;
                break;

            case FontSelectionType.Large:
                fontSize = 12f;
                break;

            case FontSelectionType.VeryLarge:
                fontSize = 14f;
                break;

            default:
                fontSize = 8.25f;
                break;
            }
            return(new Font(fontName, fontSize, FontStyle.Regular, GraphicsUnit.Point));
        }