private void ViewModel_ConnectionAvailable(object sender, ConnectionEventArgs e)
 {
     this.OnConnectionAdded(e.Connection);
 }
 protected void OnConnectionRemoved(ConnectionEventArgs e)
 {
     this.ConnectionRemoved?.Invoke(this, e);
 }
 protected void OnConnectionAvailable(ConnectionEventArgs e)
 {
     this.ConnectionAvailable?.Invoke(this, e);
 }
        protected void OnConnectionRemoved(Connection connection)
        {
            ConnectionEventArgs e = new ConnectionEventArgs();

            e.Connection = connection;

            this.OnConnectionRemoved(e);
        }
        protected void OnConnectionAvailable(Connection connection)
        {
            ConnectionEventArgs e = new ConnectionEventArgs();

            e.Connection = connection;

            this.OnConnectionAvailable(e);
        }