コード例 #1
0
ファイル: UndoHandler.cs プロジェクト: cococo111111/Solitaire
    public void Init(IUndoActions undo)
    {
        if (undo == null)
        {
            throw new ArgumentNullException("undo");
        }

        this.undo = undo;
    }
コード例 #2
0
ファイル: ScoreBoard.cs プロジェクト: cococo111111/Solitaire
    public ScoreBoard(IGameActions actions, IUndoActions undo)
    {
        if (undo == null)
        {
            throw new ArgumentNullException("undo");
        }
        if (actions == null)
        {
            throw new ArgumentNullException("actions");
        }

        this.boardActions = actions;
        this.undoBoard    = undo;
    }