public IFragmentEditorViewModel CreateFragmentEditorViewModel(IDeviceFragment deviceFragment) { IFragmentEditorViewModel fragmentEditorViewModel = _container.Resolve <IFragmentEditorViewModel>(deviceFragment.StrongName + ApplicationGlobalNames.CommonInjectionStrings.EDITOR_VIEWMODEL); fragmentEditorViewModel.Initialize(deviceFragment); return(fragmentEditorViewModel); }
private List <EditorValidationErrorViewModel> GetValidatedListFromFragment( List <Func <IFragmentEditorViewModel, List <EditorValidationErrorViewModel> > > validator, IFragmentEditorViewModel fragmentEditorViewModel) { return(validator.SelectMany(func => func(fragmentEditorViewModel)).ToList()); }