Exemplo n.º 1
0
 /// <summary>
 /// Sets up the provided <see cref="DefaultWatch3DViewModel"/> object and 
 /// adds it to the Watch3DViewModels collection.
 /// </summary>
 /// <param name="watch3DViewModel"></param>
 /// <param name="factory"></param>
 protected void RegisterWatch3DViewModel(DefaultWatch3DViewModel watch3DViewModel, IRenderPackageFactory factory)
 {
     watch3DViewModel.Setup(this, factory);
     watch3DViewModels.Add(watch3DViewModel);
     RaisePropertyChanged("Watch3DViewModels");
 }
Exemplo n.º 2
0
 /// <summary>
 /// Sets up the provided <see cref="DefaultWatch3DViewModel"/> object and 
 /// adds it to the Watch3DViewModels collection.
 /// </summary>
 /// <param name="watch3DViewModel"></param>
 /// <param name="factory"></param>
 protected void RegisterWatch3DViewModel(DefaultWatch3DViewModel watch3DViewModel, IRenderPackageFactory factory)
 {
     watch3DViewModel.Setup(this, factory);
     watch3DViewModels.Add(watch3DViewModel);
     watch3DViewModel.Active = PreferenceSettings
         .GetIsBackgroundPreviewActive(watch3DViewModel.PreferenceWatchName);
     RaisePropertyChanged("Watch3DViewModels");
 }