Ejemplo n.º 1
0
        public static bool InvokeByName(string actionName, TimelineWindow.TimelineState state)
        {
            TimelineAction timelineAction = TimelineAction.actions.FirstOrDefault((TimelineAction x) => x.GetType().Name == actionName);

            return(timelineAction != null && timelineAction.CanExecute(state) && timelineAction.Execute(state));
        }
Ejemplo n.º 2
0
        protected static bool DoInternal(Type t, TimelineWindow.TimelineState state)
        {
            TimelineAction timelineAction = (TimelineAction)t.GetConstructors()[0].Invoke(null);

            return(timelineAction.CanExecute(state) && timelineAction.Execute(state));
        }