Beispiel #1
0
 public void DisconnectUser()
 {
     client.Disconnect(ID);
     client    = null;
     Button    = "Connect";
     IsEneble  = true;
     isConnect = false;
 }
Beispiel #2
0
        void ConnectUser()
        {
            if (!isConnect)
            {
                client = new Chat_servisClient(new System.ServiceModel.InstanceContext(this));

                ID        = client.Connect(name);
                Button    = "Disconnect";
                IsEneble  = false;
                isConnect = true;
            }
        }