Ejemplo n.º 1
0
        internal bool Draw(Graphics graphics, Platelet platelet, Point mousePosition)
        {
            var x = _positions.OrderBy(p =>
            {
#warning name to long
                return(p.CalculateMinimumInnerCornerDistance(mousePosition));
            });

            var best = x.FirstOrDefault();

            return(platelet.Draw(graphics, best));
        }
Ejemplo n.º 2
0
 public bool Draw(Graphics g, Platelet platelet, int fieldIndex)
 {
     return(platelet.Draw(g, _positions[fieldIndex]));
 }