コード例 #1
0
ファイル: Form1.cs プロジェクト: keremkoseoglu/Numbrella
        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...");
        }
コード例 #2
0
ファイル: Form1.cs プロジェクト: kuzeygh/Numbrella
        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...");
            }
        }