public void addPostAction(TimelineInstantAction action) { action._setTimeline(this); postActions.Add(action); if (timelineEditInterface != null) { timelineEditInterface.PostActionsEdit.postActionAdded(action); } }
public void removePreAction(TimelineInstantAction action) { if (timelineEditInterface != null) { timelineEditInterface.PreActionsEdit.preActionRemoved(action); } action._setTimeline(null); preActions.Remove(action); }
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.addPreAction(action); return(true); }); } }
public void removePostAction(TimelineInstantAction action) { if (timelineEditInterface != null) { timelineEditInterface.PostActionsEdit.postActionRemoved(action); } int index = postActions.IndexOf(action); postActions.RemoveAt(index); //Adjust the iteration index backwards if the element being removed is before or on the index. //This way nothing gets skipped. if (index != -1 && index <= postActionIndex) { --postActionIndex; } action._setTimeline(null); }
public void preActionRemoved(TimelineInstantAction action) { editInterface.removeSubInterface(action); }
public void preActionAdded(TimelineInstantAction action) { editInterface.addSubInterface(action, action.getEditInterface()); }