Esempio n. 1
0
        public static bool TaskToDo(List <Tasks> task)
        {
            int userOption = Prompts.ListTasks();

            if (userOption == 1)
            {
                int num1 = PrintEachTaskInList(task);
                Console.WriteLine("Press any key to continue");
                Console.ReadKey();
            }

            else if (userOption == 2)
            {
                bool x = UserAddTask(task);
            }

            else if (userOption == 3)
            {
                DeleteTask(task);
            }

            else if (userOption == 4)
            {
                bool complete = true;
                complete = MarkTaskComplete(task);
            }

            else if (userOption == 5)
            {
                Console.WriteLine("Have a good day!");
                System.Environment.Exit(1);
            }

            return(true);
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            bool loop = true;

            Prompts.WelcomeUser();

            while (loop)
            {
                Tasks.TaskToDo(productionInfo);
            }
        }