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]);
        }
Exemple #3
0
 public Point(double x, double y, PointIcon pointIcon)
 {
     _x         = x;
     _y         = y;
     _pointIcon = pointIcon;
 }
Exemple #4
0
 public Point(int x, int y, PointIcon pointIcon)
 {
     this.x         = x;
     this.y         = y;
     this.pointIcon = pointIcon;
 }
Exemple #5
0
        //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;
        }