Exemple #1
0
 private void Connection_ConnectionLost(object sender, DisconnectEventArgs e)
 {
     if (e.Reason == DisconnectReason.UserInitiated)
     {
         Disconnected.Fire(this, e);
     }
     else
     {
         ConnectionLost.Fire(this, e);
     }
 }