public void Select(ISelectableElement e) { if (e.IsSelected()) { return; } if (e is FTrackEditor) { SelectTrack((FTrackEditor)e); } else if (e is FEventEditor) { SelectEvent((FEventEditor)e); } else if (e is FTimelineEditor) { SelectTimeline((FTimelineEditor)e); } Repaint(); }
public void SelectExclusive(ISelectableElement e) { if (e.IsSelected()) { return; } // Undo.IncrementCurrentGroup(); DeselectAll(); if (e is FTrackEditor) { SelectTrack((FTrackEditor)e); } else if (e is FEventEditor) { SelectEvent((FEventEditor)e); } // Undo.CollapseUndoOperations( Undo.GetCurrentGroup() ); Repaint(); }