Esempio n. 1
0
 public SelectionChangeUndoUnit(SelectionSet <T, ListOfT> selectionSet, ListOfT selection, int indexOfPrimarySelection)
 {
     this.selectionSet            = selectionSet;
     this.selection               = selection;
     this.indexOfPrimarySelection = indexOfPrimarySelection;
 }
Esempio n. 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);
 }
Esempio n. 3
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;
 }