Пример #1
0
        public Interperter()
        {
            executes = new List <Func <string[], bool> >();
            executes.Add(Help.HelpMe);
            executes.Add(Executes.Now);
            executes.Add(Executes.Date);
            executes.Add(Executes.Time);
            executes.Add(Executes.ShowDay);

            executes.Add(Executes.ListDeadlines);
            executes.Add(Executes.AddDeadline);
            executes.Add(Executes.DeleteDeadline);
            executes.Add(Executes.EditDeadline);
            executes.Add(Executes.CleanDeadlines);

            executes.Add(Executes.ListCards);
            executes.Add(Executes.AddCard);
            executes.Add(Executes.DeleteCard);
            executes.Add(Executes.EditCard);
            executes.Add(Executes.InspectCard);
            executes.Add(Executes.CleanCards);

            executes.Add(Executes.AddDeadCard);
            executes.Add(Executes.DeleteDeadCard);

            executes.Add(Executes.ListTimeSlots);
            executes.Add(Executes.AddTimeSlot);
            executes.Add(Executes.DeleteTimeSlot);

            executes.Add(SequentialPlannerWizard.Run);
            //run the app
            Conzole.SetDimensions(120, 2000);
            Conzole.SetColour(ConsoleColor.Green);
            Introduce();
            AskCommand();
        }