public void RaiseDisconnected() { var handler = Disconnected; if (handler != null) handler(this, EventArgs.Empty); } }