private void btnTest_Click(object sender, EventArgs e) { MainGrid.Cols = Convert.ToInt16(numCols.Value); MainGrid.Rows = Convert.ToInt16(numRows.Value); MainGrid.ClearShapes(); MainGrid.DrawLines(); }