Esempio n. 1
0
 private void ColorShapes()
 {
     foreach (var item in this._layer.Items)
     {
         var shape = item as MapShape;
         if (shape != null)
         {
             if (this._selectedShapes.Contains(shape))
             {
                 MapUtilities.SelectShape(shape);
             }
             else
             {
                 MapUtilities.UnSelectShape(shape);
             }
         }
     }
 }
Esempio n. 2
0
        private void ColorShapes()
        {
            foreach (var item in this._layer.Items)
            {
                var shape = item as MapShape;
                if (shape != null)
                {
                    if (this._selectedShapes.Contains(shape))
                    {
                        MapUtilities.SelectShape(shape);
                    }
                    else
                    {
                        MapUtilities.UnSelectShape(shape);
                    }
                    MapUtilities.ColorShape(shape, _defaultColor);
                }

                if (this._selectedShapes.Count > 0)
                {
                    MapUtilities.ColorShape(this._selectedShapes.First(), _ownedColor);
                }
            }
        }