Пример #1
0
 void DisconnectUser()
 {
     if (isConnected)
     {
         client.Disconnect(id);
         tbUserName.IsEnabled = true;
         client = null;
         btConDiscon.Content = "Connect";
         isConnected         = false;
     }
 }