Exemple #1
0
        private void GetAllCreated()
        {
            Console.Clear();

            TasksRepository tasksRepository = new TasksRepository("tasks.txt");
            List <TaskData> tasks           = tasksRepository.GetAllCreated(AuthenticationService.LoggedUser.Id);

            Console.WriteLine("All tasks you created:");

            foreach (TaskData task in tasks)
            {
                Console.WriteLine("Task ID:" + task.Id);
                Console.WriteLine("Title :" + task.Title);
                Console.WriteLine("Description :" + task.Description);
                Console.WriteLine("Responsible User ID: " + task.ResponsibleUser);
                Console.WriteLine("Creator ID:" + task.Creator);
                Console.WriteLine("Creation Date : " + task.CreationDate);
                Console.WriteLine("Last Update Date :" + task.LastUpdateDate);
                Console.WriteLine("State :" + task.State);

                Console.WriteLine("########################################");
            }

            Console.ReadKey(true);
        }