Example #1
0
      public void HandleDisconnected(object sender, DisconnectedEventArgs e)
      {
         // Raise the event.
         OnDisconnected(e);

         // Show a notification in the chat window.
         LocalChatMessage(String.Format("Disconnected from '{0}': {1}", m_server.ServerName, e.Reason));

         // Play the disconnected sound.
         m_soundController.PlaySound(SoundEffect.Disconnected);

         // Start the reconnect timer.
         StartReconnect();
      }
Example #2
0
 protected virtual void OnDisconnected(DisconnectedEventArgs e)
 {
    if (Disconnected != null)
       Disconnected(this, e);
 }
Example #3
0
 private void Event_Disconnected(object sender, DisconnectedEventArgs e)
 {
    m_screen.WriteLine("Disconnected!");
 }