コード例 #1
0
        public PointIcon GetPointIcon(PointType pointType)
        {
            if (!icons.ContainsKey(pointType))
            {
                icons[pointType] = new PointIcon(pointType, null);
            }

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