private void strpImgSelector_Click(object sender, EventArgs e) { frmImgSelector form = new frmImgSelector(); form.Option = gameBoard.Option; form.ShowDialog(); if (form.btnComplete_DialogResult == DialogResult.Cancel) { return; } gameBoard.Option = form.Option; NewGame(); strpBoardType_Change(); if (gameBoard.Option.previewHint) { this.picPreview.Image = gameBoard.Option.puzzleImage.image; } else { this.picPreview.Image = Image.FromFile("img/noimage.png"); } strpNum.Checked = gameBoard.Option.drawNum; gameBoard.OptionSaver(gameBoard.Option); }
private void ImgSelectorOpen_Click(object sender, EventArgs e) { frmImgSelector form = new frmImgSelector(); //gameBoard.RemovePiece(this.Controls); //gameBoard = new Board(); form.Show(); }