private void ConnectionChanged(object sender, bool connected) { ConnectionChangeEvent?.Invoke(this, communication.IsConnected); }
/// <summary> /// Causes the ConnectionChangeEvent to occur /// </summary> protected virtual void OnConnectionChangeEvent() { ConnectionChangeEvent?.Invoke(this, new ConnectionChangeEventArgs(isConnected)); }