Esempio n. 1
0
        private void client_StateChanged(object sender, NetSockStateChangedEventArgs e)
        {
            switch (e.NewState)
            {
            case SocketState.Closed:
                account.SetStatus(Enums.Status.Disconnected);
                break;

            case SocketState.Connected:
                account.SetStatus(Enums.Status.None);
                break;
            }
            State = e.NewState;
        }
Esempio n. 2
0
 private void server_StateChanged(object sender, NetSockStateChangedEventArgs e)
 {
     account.Log(new ConnectionTextInformation("New server state : " + e.NewState), 0);
 }
Esempio n. 3
0
 private void server_StateChanged(object sender, NetSockStateChangedEventArgs e)
 {
     account.Log(new ConnectionTextInformation("New server state : " + e.NewState), 0);
 }
Esempio n. 4
0
 private void client_StateChanged(object sender, NetSockStateChangedEventArgs e)
 {
     switch (e.NewState)
     {
         case SocketState.Closed:
             account.SetStatus(Enums.Status.Disconnected);
             break;
         case SocketState.Connected:
             account.SetStatus(Enums.Status.None);
             break;
     }
     State = e.NewState;
 }