public PointIcon GetPointIcon(PointType type) { if (!_icons.ContainsKey(type)) { // We should pass the icon in bytes where is the null (img/cafe.jpg) var icon = new PointIcon(type, null); _icons.Add(type, icon); } return(_icons[type]); }
public Point(int x, int y, PointIcon icon) { _x = x; _y = y; _icon = icon; }