public MainWindow() { InitializeComponent(); taskList = db.GetAll(); TaskList.ItemsSource = taskList; TaskList.Items.Refresh(); }
public IEnumerable <MainTask> GetAll() { return(_mainTaskRepository.GetAll()); }