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); }
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); }