LauncherArma3.languageChoice.setColor C# (CSharp) Méthode

setColor() private méthode

private setColor ( string color ) : void
color string
Résultat void
        void setColor(string color)
        {
            switch (color)
            {
                case "BLUE":
                    this.Style = MetroColorStyle.Blue;
                    break;
                case "GREEN":
                    this.Style = MetroColorStyle.Green;
                    break;
                case "WHITE":
                    this.Style = MetroColorStyle.White;
                    break;
                case "RED":
                    this.Style = MetroColorStyle.Red;
                    break;
                case "BLACK":
                    this.Style = MetroColorStyle.Black;
                    break;
                case "PINK":
                    this.Style = MetroColorStyle.Pink;
                    break;
                case "YELLOW":
                    this.Style = MetroColorStyle.Yellow;
                    break;
                case "PURPLE":
                    this.Style = MetroColorStyle.Purple;
                    break;
                case "BROWN":
                    this.Style = MetroColorStyle.Brown;
                    break;
                case "SILVER":
                    this.Style = MetroColorStyle.Silver;
                    break;
                case "ORANGE":
                    this.Style = MetroColorStyle.Orange;
                    break;
            }
        }