示例#1
0
 public PointIcon getPointIcon(PointType type)
 {
     if (!icons.ContainsKey(type))
     {
         var icon = new PointIcon(type, null);
         icons.Add(type, icon);
     }
     return(icons[type]);
 }
        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;
 }