Пример #1
0
        private EmployerItemViewModel CreateEmployerItemViewModel(Employer employer)
        {
            EmployerItemViewModel vm = (EmployerItemViewModel)_employersVMFactory.Create(employer, EmployerViewModel.ITEM);

            vm.OnDeletedEmployer += (s, e) => {
                _employers.Remove((EmployerItemViewModel)s);
            };

            return(vm);
        }
Пример #2
0
 private void RemoveEmployer(EmployerItemViewModel p)
 {
     OnDeletedEmployer?.Invoke(this, EventArgs.Empty);
 }