// ----- private void RefreshEmployers() { _employers = _employerFacade.FindAllEmployers(); _employers.Insert(0, _promptEmployer); NotifyOfPropertyChange(() => Employers); }
// ----- protected override void OnActivate() { base.OnActivate(); _employers.Clear(); List <Employer> foundEmployers = _employerFacade.FindAllEmployers(); foreach (Employer e in foundEmployers) { _employers.Add(CreateEmployerItemViewModel(e)); } }
protected override void OnActivate() { base.OnActivate(); _employers.Refill(_employerFacade.FindAllEmployers(), CreateEmployerItemViewModel); }