private void rowOrColumnCountChanged(object sender, EventArgs e) { int rows = (int)rowNumericUpDown.Value; int columns = (int)columnNumericUpDown.Value; Game.ResizeField(rows, columns); renderPictureBox.Invalidate(); }
private void rowOrColumnCountChanged(object sender, EventArgs e) { Rows = (int)rowNumericUpDown.Value; Columns = (int)columnNumericUpDown.Value; Game.ResizeField(Rows, Columns); //DrawGrid(Rows, Columns); renderPanel.Invalidate(); }