Пример #1
0
        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();
        }
Пример #2
0
        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();
        }