コード例 #1
0
        private bool CheckLogin()
        {
            MyTransportObject dataReceive = clientDataTrans.ReceiveData();
            UserAccount       tempUser    = dataReceive.Obj as UserAccount;

            if (tempUser.CheckExisted())
            {
                this.User = tempUser;
                SendUser(tempUser);
                return(true);
            }
            SendUser(tempUser);
            return(false);
        }
コード例 #2
0
        private bool CheckLogin()
        {
            MyTransportObject dataReceive = clientDataTrans.ReceiveData();
            UserAccount       tempUser    = dataReceive.Obj as UserAccount;

            if (tempUser.CheckExisted())
            {
                if (!TheServer.Instance.ListClient.IsOnline(tempUser))
                {
                    this.User = tempUser;
                    SendUser(tempUser);
                    return(true);
                }
            }
            tempUser.Refresh();
            SendUser(tempUser);
            return(false);
        }