Пример #1
0
 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);
         }
     }
 }
Пример #2
0
 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);
                 }
             }
         }
     }
 }
Пример #3
0
		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);
				}
			}
		}