예제 #1
0
        private void RefreshJobList()
        {
            var da = new FreelanceDatabase();
            ObservableCollection <Job> jobs = new ObservableCollection <Job>(da.FetchJobList <Job>());

            Jobs = new ReadOnlyObservableCollection <Job>(jobs);
        }
예제 #2
0
        public JobsViewModel(IEventAggregator events)
        {
            _events = events;

            var da = new FreelanceDatabase();

            ObservableCollection <Job> jobs = new ObservableCollection <Job>(da.FetchJobList <Job>());

            Jobs = new ReadOnlyObservableCollection <Job>(jobs);
        }
예제 #3
0
 public JobController(FreelanceDatabase db)
 {
     _da   = db;
     _jobs = _da.FetchJobList <Job>().OrderByDescending(x => x.EndDate).ToList().AsReadOnly();
 }
예제 #4
0
        public JobController()
        {
            var da = new FreelanceDatabase();

            _jobs = da.FetchJobList <Job>().OrderByDescending(x => x.EndDate).ToList().AsReadOnly();
        }