public void AddAction(Anchor anchor, ActionBase action) { // check for existing action set ActionSet loadedActions = ActionSets[anchor]; // create action set if it is not there if (loadedActions == null) { loadedActions = new ActionSet(); loadedActions.Anchors.Add(anchor); ActionSets.Add(loadedActions); } if (loadedActions != null) { loadedActions.Actions.Add(action); } }
public NSIndexPath Add(HMActionSet actionSet) { ActionSets.Add(actionSet); ActionSets.SortByTypeAndLocalizedName(); return(IndexPathOfObject(actionSet)); }