private void RefreshJobList() { var da = new FreelanceDatabase(); ObservableCollection <Job> jobs = new ObservableCollection <Job>(da.FetchJobList <Job>()); Jobs = new ReadOnlyObservableCollection <Job>(jobs); }
public JobsViewModel(IEventAggregator events) { _events = events; var da = new FreelanceDatabase(); ObservableCollection <Job> jobs = new ObservableCollection <Job>(da.FetchJobList <Job>()); Jobs = new ReadOnlyObservableCollection <Job>(jobs); }
public JobController(FreelanceDatabase db) { _da = db; _jobs = _da.FetchJobList <Job>().OrderByDescending(x => x.EndDate).ToList().AsReadOnly(); }
public JobController() { var da = new FreelanceDatabase(); _jobs = da.FetchJobList <Job>().OrderByDescending(x => x.EndDate).ToList().AsReadOnly(); }