Beispiel #1
0
 public static void ShowEntries(Dictionary <int, AgendaEntry> filteredAgenda)
 {
     foreach (KeyValuePair <int, AgendaEntry> agendaEntries in filteredAgenda)
     {
         Console.WriteLine(AgendaTools.BuildEntryShowingMessage(agendaEntries.Value));
     }
 }
Beispiel #2
0
        public bool ExecuteTask(string entryText, string[] commandOptions = null)
        {
            TextFilterer textFilterer = new TextFilterer(agendaController);
            Dictionary <int, AgendaEntry> filteredAgenda = textFilterer.GetFilteredAgenda(entryText);

            foreach (KeyValuePair <int, AgendaEntry> filteredEntry in filteredAgenda)
            {
                Console.WriteLine(AgendaTools.BuildEntryShowingMessage(filteredEntry.Value));
            }
            return(true);
        }