public void SetIf(PIf node) { if(_if_ != null) { _if_.Parent(null); } if(node != null) { if(node.Parent() != null) { node.Parent().RemoveChild(node); } node.Parent(this); } _if_ = node; }
internal override void RemoveChild(Node child) { if ( _if_ == child ) { _if_ = null; return; } if ( _elif_ == child ) { _elif_ = null; return; } if ( _else_ == child ) { _else_ = null; return; } }
public AIfelse( PIf _if_, PElif _elif_, PElse _else_ ) { SetIf (_if_); SetElif (_elif_); SetElse (_else_); }