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