示例#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));
 }