public DeleteElseCommand(If @if, Else existedElse) { If = @if; DeletedElse = existedElse; }
internal void DeleteElse(Else existedElse) => Tree.AddCommandAndExecute(new DeleteElseCommand(this, existedElse));
internal void AddElse(Else newElse) => Tree.AddCommandAndExecute(new AddElseCommand(this, newElse));
internal void InsertElseIfBeforeElse(ElseIf newElseIf, Else existedElse) => Tree.AddCommandAndExecute(new InsertElseIfBeforeElseCommand(this, newElseIf, existedElse));
public AddElseCommand(If @if, Else @else) { If = @if; AddedElse = @else; }