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