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