コード例 #1
0
        private IUserOrder GetAddCommand(int numberOfEntryValues, AgendaController agendaClient)
        {
            switch (numberOfEntryValues)
            {
            case ONE_ENTRY:
                return(new AdderOneEntry(agendaClient));

            case TWO_ENTRIES:
                return(new AdderTwoEntries(agendaClient));

            case THREE_ENTRIES:
                return(new AdderThreeEntries(agendaClient));

            default:
                return(null);
            }
        }
コード例 #2
0
 public InterpreterOfAdd(AgendaController agendaController)
 {
     this.agendaController = agendaController;
 }
コード例 #3
0
ファイル: AdderOneEntry.cs プロジェクト: Leodolz/C-Projects
 public AdderOneEntry(AgendaController agendaController)
 {
     this.agendaController = agendaController;
 }
コード例 #4
0
ファイル: AdderTwoEntries.cs プロジェクト: Leodolz/C-Projects
 public AdderTwoEntries(AgendaController agendaController)
 {
     this.agendaController = agendaController;
 }
コード例 #5
0
 public UserInterpreterDecorator(IUserInterpreter decoratedInterpreter)
 {
     this.decoratedInterpreter = decoratedInterpreter;
     agendaController          = GetAgendaController();
     AddUserValidCommand();
 }
コード例 #6
0
 public InterpreterOfSearch(AgendaController agendaController)
 {
     this.agendaController = agendaController;
 }
コード例 #7
0
 public InterpreterOfRemove(AgendaController agendaController)
 {
     this.agendaController = agendaController;
 }