public PointIcon GetPointIcon(PointType pointType)
        {
            if (!icons.ContainsKey(pointType))
            {
                icons[pointType] = new PointIcon(pointType, null);
            }

            return(icons[pointType]);
        }
Ejemplo n.º 2
0
        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]);
        }
Ejemplo n.º 3
0
 public Point(double x, double y, PointIcon pointIcon)
 {
     _x         = x;
     _y         = y;
     _pointIcon = pointIcon;
 }
Ejemplo n.º 4
0
 public Point(int x, int y, PointIcon pointIcon)
 {
     this.x         = x;
     this.y         = y;
     this.pointIcon = pointIcon;
 }
Ejemplo n.º 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;
        }