Exemple #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]);
        }
Exemple #3
0
 public Point(int x, int y, PointIcon icon)
 {
     this.x    = x;
     this.y    = y;
     this.icon = icon;
 }
Exemple #4
0
 public Point(int x, int y, PointIcon pointIcon)
 {
     _x         = x;
     _y         = y;
     _pointIcon = pointIcon;
 }