private void InitializeGeoSimpleColorsList()
        {
            geoColorList = new ObservableCollection <GeoColorViewModel>();
            PropertyInfo[] propertyInfos = GeoColor.SimpleColors.GetType().GetProperties();
            foreach (PropertyInfo propertyInfo in propertyInfos)
            {
                object value = propertyInfo.GetValue(GeoColor.SimpleColors, null);
                string name  = propertyInfo.Name;

                if (name.ToUpperInvariant() == "TRANSPARENT")
                {
                    continue;
                }

                if (value.GetType() == typeof(GeoColor))
                {
                    GeoColorViewModel colorItem = new GeoColorViewModel((GeoColor)value, name);
                    geoColorList.Add(colorItem);
                }
            }
        }
        private void InitializeGeoSimpleColorsList()
        {
            geoColorList = new ObservableCollection<GeoColorViewModel>();
            PropertyInfo[] propertyInfos = GeoColor.SimpleColors.GetType().GetProperties();
            foreach (PropertyInfo propertyInfo in propertyInfos)
            {
                object value = propertyInfo.GetValue(GeoColor.SimpleColors, null);
                string name = propertyInfo.Name;

                if (name.ToUpperInvariant() == "TRANSPARENT")
                {
                    continue;
                }

                if (value.GetType() == typeof(GeoColor))
                {
                    GeoColorViewModel colorItem = new GeoColorViewModel((GeoColor)value, name);
                    geoColorList.Add(colorItem);
                }
            }
        }