internal void DeleteElseIf(ElseIf existedElseIf) => Tree.AddCommandAndExecute(new DeleteElseIfCommand(this, existedElseIf));
internal void InsertElseIfBeforeElse(ElseIf newElseIf, Else existedElse) => Tree.AddCommandAndExecute(new InsertElseIfBeforeElseCommand(this, newElseIf, existedElse));
internal void AddElseIf(ElseIf newElseIf) => Tree.AddCommandAndExecute(new AddElseIfCommand(this, newElseIf));
internal void InsertElseIfAsNext(ElseIf newElseIf, ElseIf existedElseIf) => Tree.AddCommandAndExecute(new InsertElseIfAsNextCommand(this, newElseIf, existedElseIf));
public AddElseIfCommand(If @if, ElseIf elseIf) { If = @if; AddedElseIf = elseIf; }