private void OnAddTrackItem(Type track) { TrackModel trackModel = ReflectionHelper.CreateInstance(track) as TrackModel; BaseSequenceView sequenceView = window.GetPartialView <BaseSequenceView>(); sequenceView.AddTrack(trackModel); }
public string GetTimelineName() { BaseSequenceView sequenceView = window.GetPartialView <BaseSequenceView>(); if (sequenceView == null) { return(""); } return(sequenceView.Timeline.Name); }