/// <summary> /// Handles the <see cref="ConnectionCollection.ConnectionRemoved"/> event. /// </summary> protected void OnConnectionRemoved(object server, ConnectionEventArgs e) { e.Connection.StateChanged -= OnStateChanged; networks.UpdateStatus(); }
/// <summary> /// Handles the <see cref="ConnectionCollection.ConnectionAdded"/> event. /// </summary> protected void OnConnectionAdded(object sender, ConnectionEventArgs e) { e.Connection.StateChanged += OnStateChanged; networks.UpdateStatus(); }