Beispiel #1
0
 public SelectionSet(SceneViewModel model, ISelectionSetNamingHelper namingHelper, SelectionSet <T, ListOfT> .IStorageProvider storageProvider)
 {
     this.viewModel = model;
     this.editTransactionFactory = this.viewModel != null ? (ISceneEditTransactionFactory)this.viewModel.Document : (ISceneEditTransactionFactory)null;
     this.namingHelper           = namingHelper;
     this.storageProvider        = storageProvider;
     this.selection = storageProvider.NewList();
     this.indexOfPrimarySelection = -1;
     this.changeStamp             = 0U;
 }
Beispiel #2
0
 public SubpartSelectionSet(SceneViewModel viewModel, ISelectionSetNamingHelper namingHelper, SceneElementSelectionSet sceneElementSelectionSet, SelectionSet <T, ListOfT> .IStorageProvider storageProvider)
     : base(viewModel, namingHelper, storageProvider)
 {
     this.sceneElementSelectionSet           = sceneElementSelectionSet;
     this.sceneElementSelectionSet.Changing += new EventHandler <SelectionSetChangingEventArgs <SceneElement> >(this.SceneElementSelectionSet_Changing);
 }
 public SceneElementSubpartSelectionSet(SceneElementSelectionSet elementSelectionSet, SceneViewModel viewModel, ISelectionSetNamingHelper namingHelper)
     : base(viewModel, namingHelper, elementSelectionSet, (SelectionSet <T, MarkerBasedSceneNodeCollection <T> > .IStorageProvider) new SceneNodeSelectionSetStorageProvider <T>(viewModel))
 {
 }