public IFragmentEditorViewModel CreateFragmentEditorViewModel(IDeviceFragment deviceFragment)
        {
            IFragmentEditorViewModel fragmentEditorViewModel = _container.Resolve <IFragmentEditorViewModel>(deviceFragment.StrongName +
                                                                                                             ApplicationGlobalNames.CommonInjectionStrings.EDITOR_VIEWMODEL);

            fragmentEditorViewModel.Initialize(deviceFragment);
            return(fragmentEditorViewModel);
        }
예제 #2
0
 private List <EditorValidationErrorViewModel> GetValidatedListFromFragment(
     List <Func <IFragmentEditorViewModel, List <EditorValidationErrorViewModel> > > validator,
     IFragmentEditorViewModel fragmentEditorViewModel)
 {
     return(validator.SelectMany(func => func(fragmentEditorViewModel)).ToList());
 }