예제 #1
0
 public static MapObjectColors getInstance()
 {
     if (instance == null)
     {
         instance = new MapObjectColors();
     }
     return(instance);
 }
예제 #2
0
 public void setMapObjectColor()
 {
     this.rectangle.Fill = MapObjectColors.getInstance().getColor(MapObjectType);
     if (isStrokeNeeded())
     {
         this.rectangle.Stroke = Brushes.Black;
     }
 }