Ejemplo n.º 1
0
 public override ElementBase CreateFirstChild()
 {
     if (this.IsEmpty)
     {
         return(null);
     }
     return(ActionElement.Create(Context, Content, this, ActionEnumerator.Current));
 }
Ejemplo n.º 2
0
        public override ElementBase CreateNextElement()
        {
            var enumerator    = ((ActionsElement)Parent).ActionEnumerator;
            var hasNextAction = enumerator.MoveNext();

            if (!hasNextAction)
            {
                return(null);
            }
            return(ActionElement.Create(Context, Content, Parent, enumerator.Current));
        }