Пример #1
0
 void ConnectUser()
 {
     if (!isConnected)
     {
         client                = new ServiceChatClient(new System.ServiceModel.InstanceContext(this));
         ID                    = client.Connetct(tbName.Text);
         tbName.IsEnabled      = false;
         isConnected           = true;
         btConnectDisc.Content = "Отключиться";
     }
 }