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(); }
protected virtual void OnDisconnected(DisconnectedEventArgs e) { if (Disconnected != null) Disconnected(this, e); }
private void Event_Disconnected(object sender, DisconnectedEventArgs e) { m_screen.WriteLine("Disconnected!"); }