예제 #1
0
        private string TranslateSkinName(OdometerSkin skin)
        {
            switch (skin)
            {
            case OdometerSkin.Default:
                return("default");

            case OdometerSkin.Car:
                return("car");

            case OdometerSkin.Digital:
                return("digital");

            case OdometerSkin.Minimal:
                return("minimal");

            case OdometerSkin.Plaza:
                return("plaza");

            case OdometerSkin.SlotMachine:
                return("slot-machine");

            case OdometerSkin.TrainStation:
                return("train-station");

            default:
                return(skin.ToString().ToLower());
            }
        }
예제 #2
0
        private string TranslateSkinName(OdometerSkin skin)
        {
            switch (skin)
            {
            case OdometerSkin.SlotMachine:
                return("slot-machine");

            case OdometerSkin.TrainStation:
                return("train-station");

            default:
                return(skin.ToString().ToLower());
            }
        }