Ejemplo n.º 1
0
 private void Connection_Disconnected(object sender, DisconnectedEventArgs e)
 {
     if (isConnected)
         IsConnected = false;
     if (isVersionValid)
         IsVersionValid = false;
     if (IsLoggedIn)
         IsLoggedIn = false;
     WriteLine("YOU HAS DISCONNECT");
 }
Ejemplo n.º 2
0
 private void Shitchat_Disconnected(object sender, DisconnectedEventArgs e)
 {
     
 }
Ejemplo n.º 3
0
 private void Disconnect_Async(object sender, SocketAsyncEventArgs e)
 {
     DisconnectedEventArgs discArgs = new DisconnectedEventArgs();
     discArgs.Reason = (string)e.UserToken;
     if (Disconnected != null)
     {
         if (syncContext != null)
         {
             syncContext.Post(new SendOrPostCallback(Disconnect_Sync), discArgs);
         }
         else
         {
             Disconnected(this, discArgs);
         }
     }
 }
Ejemplo n.º 4
0
 static void shitchat_Disconnected(object sender, DisconnectedEventArgs e)
 {
     connected = false;
     loggedIn = false;
     versionValid = false;
     Console.WriteLine(e.Reason);
 }