/// <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; }
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(); }