Esempio n. 1
0
 static void WHILE_Execute(SIL_Action action)
 {
     while ((int)((SILInteger)((ISILObject)action.ParsingArgs[0]).Value) > 0)
     {
         Queue <SIL_Action> nestedActions = new Queue <SIL_Action>((Queue <SIL_Action>)action.ParsingArgs[1]);
         while (nestedActions.Count > 0)
         {
             SIL_Action nestedAction = nestedActions.Dequeue();
             executeSymbols_[nestedAction.ActionType](nestedAction); //first execute internal logic
             nestedAction.Execute();                                 //lin action with GUI
         }
     }
 }
Esempio n. 2
0
 internal static void Execute(SIL_Action action)
 {
     executeSymbols_[action.ActionType](action);
     action.Execute();
 }