public PointIcon GetPointIcon(PointType pointType) { if (icons.ContainsKey(pointType)) { return(icons[pointType]); } var icon = new PointIcon(pointType, null); icons.Add(pointType, icon); return(icon); }
public Point(int x, int y, PointIcon icon) { this.x = x; this.y = y; pointIcon = icon; }