public void DrawGrid(Graphics g, Pen pen, float spacing) { Graphing.Grid grid = new Graphing.Grid(pen, PanelLimits, spacing, spacing); grid.Draw(g); }