public void RemoveAction(ActionEvent action) { if (action == null) { return; } Actions.ActionElement element = (Actions.ActionElement)actions.Get(action .GetOriginal()); if (element != null) { int i = element.actions.IndexOf(action); if (i != -1) { RemoveAction(i, element); } } }
public void RemoveAction(object tag, Event actObject) { Actions.ActionElement element = (Actions.ActionElement)actions.Get(actObject); if (element != null) { if (element.actions != null) { int limit = element.actions.Count; for (int i = 0; i < limit; i++) { ActionEvent a = (ActionEvent)element.actions[i]; if (a.GetTag() == tag && a.GetOriginal() == actObject) { RemoveAction(i, element); } } } } }
public void RemoveAction(ActionEvent action) { if (action == null) { return; } ActionElement element = (ActionElement) actions.Get(action .GetOriginal()); if (element != null) { int i = element.actions.IndexOf(action); if (i != -1) { RemoveAction(i, element); } } }