Ejemplo n.º 1
0
 void ConnectUser()
 {
     if (!isConnected)
     {
         client = new ServiceChatClient(new InstanceContext(this));
         ID     = client.Connect(Login, Password);
         client.UpdateUsersList();
         client.RoomListRequest(ID);
         tbUserName.IsEnabled = false;
         btnConnect.Content   = "Disconnect";
         isConnected          = true;
     }
 }