protected virtual void OnPortAdded() { EventHandler handler = PortAdded; if (handler != null) handler(this, EventArgs.Empty); }