Exemplo n.º 1
0
Arquivo: Form1.cs Projeto: kekse/Look
 private void InstanceHostDisconnected(object sender, HostDisconnectedEventArgs e)
 {
     share.Stop();
     MessageBox.Show(e.Ip + " disconnected", "Disconnect");
 }
 private void NetworkClient_HostDisconnected(object sender, HostDisconnectedEventArgs e)
 {
     this.Disconnect();
     this.State = ClientStates.Disconnected;
 }
Exemplo n.º 3
0
 private void OnHostDisconnected(HostDisconnectedEventArgs e)
 {
     if (HostDisconnected != null)
     {
         HostDisconnected(this, e);
     }
 }
Exemplo n.º 4
0
 public void Disconnect()
 {
     var e = new HostDisconnectedEventArgs { Ip = this.GetIp() };
     this.OnHostDisconnected(e);
 }
Exemplo n.º 5
0
 private void ViewServiceHostDisconnected(object sender, HostDisconnectedEventArgs e)
 {
     this.OnHostDisconnected(e);
     ViewServiceClient proxy;
     this.connectedHosts.TryRemove(IpHelper.GetIp(e.Ip), out proxy);
 }