private void Button_Click_4(object sender, RoutedEventArgs e) { HTTP.sendToServer("type=player&subtype=remove&username=" + username); HTTP.chatThread.Abort(); HTTP.closeConnection(); this.Close(); }
void Window1_Closing(object sender, System.ComponentModel.CancelEventArgs e) { HTTP.sendToServer("type=player&subtype=remove&username=" + username); HTTP.chatThread.Abort(); HTTP.closeConnection(); //HTTP.chatThread.Suspend(); }