public void Generate() { ShowWorking(); Pt sz = new PickContext(grid).Pt(new Point(Width, Height)); grid.Generate(sz); start = finish = null; RedrawGrid(); }
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(); } } }