コード例 #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;
     }
 }