Ejemplo n.º 1
0
        private Cloud.eType GetMostClouds(CloudInfoWithNCD cloudInfoWithNCD)
        {
            Cloud.eType t = (Cloud.eType) 1;

            foreach (var fItem in cloudInfoWithNCD)
            {
                if (((int)fItem.Type) > (int)t)
                {
                    t = fItem.Type;
                }
            } // foreach (var fItem in cloudInfoWithNCD)

            return(t);
        }
Ejemplo n.º 2
0
        private static string Get(CloudInfoWithNCD cloudInfoWithNCD)
        {
            StringBuilder ret = new StringBuilder();

            if (cloudInfoWithNCD.IsNCD)
            {
                ret.Append(R.NoCloudsDetected);
            }
            else
            {
                ret = new StringBuilder(Get(cloudInfoWithNCD as CloudInfo));
            }

            ret.Append(R.Dot);

            return(ret.ToString());
        }
Ejemplo n.º 3
0
        private string GetCloudLevelString(CloudInfoWithNCD cloudInfoWithNCD)
        {
            string ret = null;

            Cloud.eType t;

            if (cloudInfoWithNCD.IsNCD || cloudInfoWithNCD.IsNSC || cloudInfoWithNCD.IsSKC || cloudInfoWithNCD.IsCLR || cloudInfoWithNCD.Count == 0)
            {
                ret = R.NoClouds;
            }
            else
            {
                t   = GetMostClouds(cloudInfoWithNCD);
                ret = GetCloudTypeString(t);
            }

            ret += R.Dot;

            return(ret);
        }