예제 #1
0
 public PointIcon getPointIcon(PointType type)
 {
     if (!icons.ContainsKey(type))
     {
         var icon = new PointIcon(type, null);
         icons.Add(type, icon);
     }
     return(icons[type]);
 }
예제 #2
0
        public PointIcon GetPointIcon(PointType type)
        {
            if (!_pointIcons.ContainsKey(type))
            {
                var icon = new PointIcon(null, type);
                _pointIcons.Add(type, icon);
            }

            return(_pointIcons[type]);
        }
예제 #3
0
 public Point(int x, int y, PointIcon icon)
 {
     this.x    = x;
     this.y    = y;
     this.icon = icon;
 }
예제 #4
0
 public Point(int x, int y, PointIcon pointIcon)
 {
     _x         = x;
     _y         = y;
     _pointIcon = pointIcon;
 }