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; }
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); } } }