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