internal override void Execute() { if (If.ElseIfList.Count > 0) { If.ElseIfList.Last().Next = AddedElse; AddedElse.Previous = If.ElseIfList.Last(); } AddedElse.Parent = If; If.Else = AddedElse; If.NotifyObservers(this); }
internal override void Execute() { DeletedElse.ManageLinks(); if (If.ElseIfList.Count > 0) { If.ElseIfList.Last().Next = null; } if (If.Else != null) { If.Else.Previous = null; If.Else.Parent = null; } If.Else = null; If.NotifyObservers(this); }
internal override void Execute() { if (If.ElseIfList.Count > 0) { If.ElseIfList.Last().Next = AddedElseIf; AddedElseIf.Previous = If.ElseIfList.Last(); } if (If.Else != null) { AddedElseIf.Next = If.Else; If.Else.Previous = AddedElseIf; } If.ElseIfList.Add(AddedElseIf); AddedElseIf.Parent = If; If.NotifyObservers(this); }