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