public static MainWindowViewModel Create(MainModel model) { return(ViewModelSource.Create(() => new MainWindowViewModel(model))); }
protected MainWindowViewModel(MainModel model) { _model = model; LocatedApplications = new ObservableCollection <ApplicationViewModel>(model.Applications.Select(ApplicationViewModel.Create)); }