コード例 #1
0
 public SudokuSolverEventArgs(SudokuValue value, int row, int column, SudokuSolverEventArgsAction action = SudokuSolverEventArgsAction.Set)
     : base()
 {
     this.Row = row;
     this.Column = column;
     this.Value = value;
     this.Action = action;
 }
コード例 #2
0
        private void NotifyCallback(SudokuValue value, int row, int col, SudokuSolverEventArgsAction action)
        {
            if (this.Callback != null)
            {
                var args = new SudokuSolverEventArgs(value, row, col, action);
                this.Callback.Invoke(this, args);

                if (args.Delay > 0)
                {
                    Thread.Sleep(args.Delay);
                }
            }
        }