public OneGridPanel(LocIdx locIdx, AllBoxesManager ptrToAllBoxesManager, int maxColRowIdx) { this.LocIdx = locIdx; PtrToAllBoxesManager = ptrToAllBoxesManager; this.maxColRowIdx = maxColRowIdx; BuildOneGridPanelControls(); }
private void buildBoxes() { int gridWidth = (int)numericUpDown1.Value; AllBoxesMan = new AllBoxesManager(gridWidth); GamePanelTarget.Controls.Add(AllBoxesMan.MasterPanel); // AllBoxesMan.PutBoxesOnScreen(this.GamePanelTarget); }