Пример #1
0
        public PointIcon GetPointIcon(PointType pointType)
        {
            // key -> value
            // pintetype -> pointIcon

            if (!icons.ContainsKey(pointType))
            {
                PointIcon pointIcon = new PointIcon(pointType, null);
                icons.Add(pointType, pointIcon);
            }
            return(icons.GetValueOrDefault(pointType));
        }
Пример #2
0
 public Point(int x, int y, PointIcon pointIcon)
 {
     this.X         = x;
     this.Y         = y;
     this.PointIcon = pointIcon;
 }