Beispiel #1
0
        public virtual void Load(TModel model, bool isNew, object parameter = null)
        {
            //детали
            DetailsViewModel.Load(model, UnitOfWork);
            DetailsViewModel.Item.PropertyChanged += ItemOnPropertyChanged;

            //группы юнитов
            var units = GetUnits(model, parameter);

            GroupsViewModel.Load(units, DetailsViewModel.Item, UnitOfWork, isNew);
            GroupsViewModel.GroupChanged += OnGroupChanged;

            AfterUnitsLoading();

            SaveCommand.RaiseCanExecuteChanged();
        }