private void NewGame() { bool state = tGame.Enabled; GameState(false); using (FormNewGame frmNew = new FormNewGame(Properties.Settings.Default.MapWidth, Properties.Settings.Default.MapHeight)) { if (frmNew.ShowDialog(this) == DialogResult.OK) { _life.NewGame(new Map(frmNew.MapWidth, frmNew.MapHeight), _options.S, _options.B, _options.C); _grEng.Reset(_life.MapWidth, _life.MapHeight, _cellSize); pnlDraw.ClientSize = _grEng.ClientSize; GraphicsInit(); ZoomInit(); Zoom(false); _grEng.Draw(); Properties.Settings.Default.MapWidth = frmNew.MapWidth; Properties.Settings.Default.MapHeight = frmNew.MapHeight; } else { GameState(state); } } }