예제 #1
0
        /// <summary>
        /// Aktualizacja listy zadan
        /// </summary>
        public void UpdateTasksList()
        {
            DataTaskService taskService = new DataTaskService(new ToDoAppDbContextFactory());
            DateTime        today       = DateTime.Today;

            Tasks       = taskService.GetByDates(today);
            TasksSum    = Tasks.Count;
            Tasks       = taskService.GetAllItems();
            AllTasksSum = Tasks.Count;

            TeamMemberService memberService = new TeamMemberService(new ToDoAppDbContextFactory());

            Members      = memberService.GetAllMembers();
            MembersCount = Members.Count;
        }
예제 #2
0
        public TaskListView()
        {
            DataTaskService taskService = new DataTaskService(new ToDoAppDbContextFactory());
            DateTime        today       = DateTime.Today;

            Tasks       = taskService.GetByDates(today);
            TasksSum    = Tasks.Count;
            Tasks       = taskService.GetAllItems();
            AllTasksSum = Tasks.Count;

            TeamMemberService memberService = new TeamMemberService(new ToDoAppDbContextFactory());

            Members      = memberService.GetAllMembers();
            MembersCount = Members.Count;

            InitializeComponent();
        }