private void settingsToolStripMenuItem_Click(object sender, EventArgs e) { formSettings formS = new formSettings(); formS.cWallColor = this.wallColor; formS.cPathColor = this.pathColor; formS.cSolvePathColor = this.solvePathColor; formS.cSolutionColor = this.solutionColor; formS.ShowDialog(this); this.wallColor = formS.cWallColor; this.pathColor = formS.cPathColor; this.solvePathColor = formS.cSolvePathColor; this.solutionColor = formS.cSolutionColor; }