public PointIcon GetPointIcon(PointType pointType) { if (!icons.ContainsKey(pointType)) { icons[pointType] = new PointIcon(pointType, null); } return(icons[pointType]); }
public PointIcon GetPointIcon(PointType type) { if (_icons.ContainsKey(type) == false) { var icon = new PointIcon(type, new byte[10]); _icons.Add(type, icon); } return(_icons[type]); }
public Point(double x, double y, PointIcon pointIcon) { _x = x; _y = y; _pointIcon = pointIcon; }
public Point(int x, int y, PointIcon pointIcon) { this.x = x; this.y = y; this.pointIcon = pointIcon; }
//private readonly PointType _type; // 4 bytes //private readonly byte[] _icon; // 20 KB -> 20 MB public Point(int x, int y, PointIcon icon) { _x = x; _y = y; _icon = icon; }