/// <summary> /// Triggers event telling power components we have exited any powernets /// </summary> public void DisconnectFromPowernet() { if (Parent == null) { return; } Parent.NodeList.Remove(this); OnPowernetDisconnect?.Invoke(this, new PowernetEventArgs(Parent)); Parent = null; }
/// <summary> /// Triggers event telling power components we have exited any powernets /// </summary> public void DisconnectFromPowernet() { Parent.Nodelist.Remove(this); OnPowernetDisconnect?.Invoke(this, new PowernetEventArgs(Parent)); Parent = null; }