Exemple #1
0
 public ProtoEntityViewModel([NotNull] IProtoEntity entity)
 {
     ProtoEntity       = entity;
     Title             = entity.Name == "" ? entity.GetType().Name : entity.Name;
     TitleLower        = entity.Name.ToLower();
     Type              = entity.Id;
     TypeLower         = entity.Id.ToLower();
     RecipeVMList      = new FilteredObservableWithPaging <RecipeViewModel>();
     UsageVMList       = new FilteredObservableWithPaging <RecipeViewModel>();
     EntityInformation = new ObservableCollection <ViewModelEntityInformation>();
 }
Exemple #2
0
 /// <summary>
 /// Finalize Recipe Link creation and prepare recipe VM list to observation.
 /// </summary>
 public virtual void FinalizeRecipeLinking()
 {
     RecipeVMList = new FilteredObservableWithPaging <RecipeViewModel>(recipeVMList);
     UsageVMList  = new FilteredObservableWithPaging <RecipeViewModel>(usageVMList);
 }