Пример #1
0
 private void ApplyAction(DasMenuActionItem ActionItem)
 {
     if (ActionItem.hasParent() && ActionItem.getParent() is DasMenuBlockItem)
     {
         DasMenuBlockItem BlockItem = ActionItem.getParent() as DasMenuBlockItem;
         ActionItem.getAction().Apply(BlockItem.getBlock());
     }
 }
Пример #2
0
            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);
                }
            }