예제 #1
0
        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]);
        }
예제 #2
0
 public Point(int x, int y, PointIcon icon)
 {
     _x    = x;
     _y    = y;
     _icon = icon;
 }