private void Select() { KeyFrameSelectionSet frameSelectionSet = this.TimelineItemManager.ViewModel.KeyFrameSelectionSet; if (this.IsSelectable) { frameSelectionSet.SetSelection((ICollection <KeyFrameSceneNode>) this.KeyFrameSceneNodesToSelect, (KeyFrameSceneNode)null); } else { frameSelectionSet.Clear(); } }
private void ToggleSelect() { if (!this.IsSelectable) { return; } KeyFrameSelectionSet frameSelectionSet = this.TimelineItemManager.ViewModel.KeyFrameSelectionSet; if (this.IsSelected) { frameSelectionSet.RemoveSelection((ICollection <KeyFrameSceneNode>) this.KeyFrameSceneNodesToSelect); } else { frameSelectionSet.ExtendSelection((ICollection <KeyFrameSceneNode>) this.KeyFrameSceneNodesToSelect); } }
private void DeselectTime0KeyFrames() { if (this.keySplineProperty == null || this.keySplineProperty.IsEmpty) { return; } List <KeyFrameSceneNode> list = new List <KeyFrameSceneNode>(); KeyFrameSelectionSet frameSelectionSet = this.keySplineProperty.SceneNodeObjectSet.ViewModel.KeyFrameSelectionSet; KeyFrameSceneNode primarySelection = frameSelectionSet.PrimarySelection; foreach (KeyFrameSceneNode keyFrameSceneNode in frameSelectionSet.Selection) { if (keyFrameSceneNode.Time != 0.0) { list.Add(keyFrameSceneNode); } } frameSelectionSet.SetSelection((ICollection <KeyFrameSceneNode>)list, primarySelection); }