示例#1
0
 private void Button_Click_4(object sender, RoutedEventArgs e)
 {
     HTTP.sendToServer("type=player&subtype=remove&username=" + username);
     HTTP.chatThread.Abort();
     HTTP.closeConnection();
     this.Close();
 }
示例#2
0
 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();
 }