Exemplo n.º 1
0
        public void Generate()
        {
            ShowWorking();
            Pt sz = new PickContext(grid).Pt(new Point(Width, Height));

            grid.Generate(sz);
            start = finish = null;
            RedrawGrid();
        }
Exemplo n.º 2
0
 private void GridControl_MouseMove(object sender, MouseEventArgs e)
 {
     if (grid != null)
     {
         PickContext pc  = new PickContext(grid);
         Pt          loc = pc.Pt(e.Location);
         if (grid.GetCell(loc) == Grid.In)
         {
             cursor = loc;
             Invalidate();
         }
         else if (cursor.HasValue)
         {
             cursor = null;
             Invalidate();
         }
     }
 }