Ejemplo n.º 1
0
        public override void doAction()
        {
            Timeline previousTimeline = TimelineController.PreviousTimeline;

            if (previousTimeline != null)
            {
                foreach (TimelineInstantAction action in previousTimeline.duplicatePostActions())
                {
                    Timeline.addPostAction(action);
                }
                Timeline.removePostAction(this);
            }
        }
        private void addAction(EditUICallback callback)
        {
            var browser = callback.runSyncCustomQuery <Browser>(CustomQueries.BuildActionBrowser);

            if (browser != null)
            {
                callback.showBrowser(browser, delegate(Object result, ref String errorMessage)
                {
                    Type createType = (Type)result;
                    TimelineInstantAction action = (TimelineInstantAction)Activator.CreateInstance(createType);
                    timeline.addPostAction(action);
                    return(true);
                });
            }
        }