private void ApplyAction(DasMenuActionItem ActionItem) { if (ActionItem.hasParent() && ActionItem.getParent() is DasMenuBlockItem) { DasMenuBlockItem BlockItem = ActionItem.getParent() as DasMenuBlockItem; ActionItem.getAction().Apply(BlockItem.getBlock()); } }
private void parseActions(DasMenuBlockItem BlockItem) { List <ITerminalAction> Actions = getActions(BlockItem.getBlock()); for (int i_Actions = 0; i_Actions < Actions.Count; i_Actions++) { ITerminalAction Action = Actions[i_Actions]; parseSingleAction(Action, BlockItem); } }