예제 #1
0
        private void mcbTextSize_SelectedIndexChanged(object sender, EventArgs e)
        {
            switch (mcbTextSize.SelectedIndex)
            {
            case 0:
                Design.ChangeTextSize(MetroTileTextSize.Small);
                break;

            case 1:
                Design.ChangeTextSize(MetroTileTextSize.Medium);
                break;

            case 2:
                Design.ChangeTextSize(MetroTileTextSize.Tall);
                break;

            default:
                Design.ChangeTextSize(MetroTileTextSize.Medium);
                break;
            }
        }
예제 #2
0
        private void mcbFontWeight_SelectedIndexChanged(object sender, EventArgs e)
        {
            switch (mcbFontWeight.SelectedIndex)
            {
            case 0:
                Design.ChangeTextFontWeight(MetroTileTextWeight.Light);
                break;

            case 1:
                Design.ChangeTextFontWeight(MetroTileTextWeight.Regular);
                break;

            case 2:
                Design.ChangeTextFontWeight(MetroTileTextWeight.Bold);
                break;

            default:
                Design.ChangeTextFontWeight(MetroTileTextWeight.Regular);
                break;
            }
        }
예제 #3
0
        private void mcbColor_SelectedIndexChanged(object sender, EventArgs e)
        {
            switch (mcbColor.SelectedIndex)
            {
            case 0:
                Design.ChangeColor(Color.Aqua);
                break;

            case 1:
                Design.ChangeColor(Color.Black);
                break;

            case 2:
                Design.ChangeColor(Color.Blue);
                break;

            case 3:
                Design.ChangeColor(Color.Gold);
                break;

            case 4:
                Design.ChangeColor(Color.Gray);
                break;

            case 5:
                Design.ChangeColor(Color.Green);
                break;

            case 6:
                Design.ChangeColor(Color.Lime);
                break;

            case 7:
                Design.ChangeColor(Color.Magenta);
                break;

            case 8:
                Design.ChangeColor(Color.Orange);
                break;

            case 9:
                Design.ChangeColor(Color.Pink);
                break;

            case 10:
                Design.ChangeColor(Color.Red);
                break;

            case 11:
                Design.ChangeColor(Color.Teal);
                break;

            case 12:
                Design.ChangeColor(Color.White);
                break;

            case 13:
                Design.ChangeColor(Color.Yellow);
                break;

            default:
                Design.ChangeColor(Color.White);
                break;
            }
        }
예제 #4
0
        private void mcbChangeStyle_SelectedIndexChanged(object sender, EventArgs e)
        {
            switch (mcbChangeStyle.SelectedIndex)
            {
            case 0:
                Design.ChangeStyle(MetroColorStyle.Black);
                break;

            case 1:
                Design.ChangeStyle(MetroColorStyle.Blue);
                break;

            case 2:
                Design.ChangeStyle(MetroColorStyle.Brown);
                break;

            case 3:
                Design.ChangeStyle(MetroColorStyle.Green);
                break;

            case 4:
                Design.ChangeStyle(MetroColorStyle.Lime);
                break;

            case 5:
                Design.ChangeStyle(MetroColorStyle.Magenta);
                break;

            case 6:
                Design.ChangeStyle(MetroColorStyle.Orange);
                break;

            case 7:
                Design.ChangeStyle(MetroColorStyle.Pink);
                break;

            case 8:
                Design.ChangeStyle(MetroColorStyle.Purple);
                break;

            case 9:
                Design.ChangeStyle(MetroColorStyle.Red);
                break;

            case 10:
                Design.ChangeStyle(MetroColorStyle.Silver);
                break;

            case 11:
                Design.ChangeStyle(MetroColorStyle.Teal);
                break;

            case 12:
                Design.ChangeStyle(MetroColorStyle.White);
                break;

            case 13:
                Design.ChangeStyle(MetroColorStyle.Yellow);
                break;

            default:
                Design.ChangeStyle(MetroColorStyle.Default);
                break;
            }
        }