Пример #1
0
        private static string GetCloudy(CloudyType cloudy)
        {
            switch (cloudy)
            {
            case CloudyType.Fair:
                return(AppResource.CloudyType_Fair);

            case CloudyType.PartlyCloudy:
                return(AppResource.CloudyType_PartlyCloudy);

            case CloudyType.Cloudy:
                return(AppResource.CloudyType_Cloudy);

            case CloudyType.MainlyCloudy:
                return(AppResource.CloudyType_MainlyCloudy);

            case CloudyType.Overcast:
                return(AppResource.CloudyType_Overcast);
            }

            return(string.Empty);
        }
Пример #2
0
        private static string GetCloudy(CloudyType cloudy)
        {
            switch (cloudy)
            {
                case CloudyType.Fair:
                    return AppResource.CloudyType_Fair;

                case CloudyType.PartlyCloudy:
                    return AppResource.CloudyType_PartlyCloudy;

                case CloudyType.Cloudy:
                    return AppResource.CloudyType_Cloudy;

                case CloudyType.MainlyCloudy:
                    return AppResource.CloudyType_MainlyCloudy;

                case CloudyType.Overcast:
                    return AppResource.CloudyType_Overcast;
            }

            return string.Empty;
        }