public PointIcon GetPointIcon(PointType pointType) { // key -> value // pintetype -> pointIcon if (!icons.ContainsKey(pointType)) { PointIcon pointIcon = new PointIcon(pointType, null); icons.Add(pointType, pointIcon); } return(icons.GetValueOrDefault(pointType)); }
public Point(int x, int y, PointIcon pointIcon) { this.X = x; this.Y = y; this.PointIcon = pointIcon; }