public void DisplayTimeline(UnitValue unit, CompileValue value = null) { ThreadHelper.ThrowIfNotOnUIThread(); TimelineWindow window = FocusTimelineWindow(); window.SetTimeline(unit, value); }
public TimelineWindow FocusTimelineWindow() { ThreadHelper.ThrowIfNotOnUIThread(); // Get the instance number 0 of this tool window. This window is single instance so this instance // is actually the only one. // The last flag is set to true so that if the tool window does not exists it will be created. TimelineWindow window = Package.FindToolWindow(typeof(TimelineWindow), 0, true) as TimelineWindow; if ((null == window) || (null == window.GetFrame())) { throw new NotSupportedException("Cannot create tool window"); } window.ProxyShow(); return(window); }