public void initialize(bool ResetFilePath, bool SetStatus) { newFile = true; board = new xBoard(); solver = new xSolver(board); solver.solutionComplete += new xSolver.solverEvent(solver_solutionComplete); solver.puttingObviousNumbers += new xSolver.solverEvent(solver_puttingObviousNumbers); solver.bruteForceLeveled += new xSolver.bruteForceEvent(solver_bruteForceLeveled); sbMain.board = board; sbMain.paintBoard(); if (ResetFilePath) filePath = ""; if (SetStatus) setStatus("Ready..."); }
public void initialize(bool ResetFilePath, bool SetStatus) { newFile = true; board = new xBoard(); solver = new xSolver(board); solver.solutionComplete += new xSolver.solverEvent(solver_solutionComplete); solver.puttingObviousNumbers += new xSolver.solverEvent(solver_puttingObviousNumbers); solver.bruteForceLeveled += new xSolver.bruteForceEvent(solver_bruteForceLeveled); sbMain.board = board; sbMain.paintBoard(); if (ResetFilePath) { filePath = ""; } if (SetStatus) { setStatus("Ready..."); } }