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