void Client_GetUserInfoCompleted(object sender, GetUserInfoCompletedEventArgs e) { try { ProxyTracker.GetInstance().Name = e.Result.Name; txtWelcome.Text = "Welcome " + e.Result.Name + ", you're connected!"; } catch { } }
void Client_GetUserInfoCompleted(object sender, GetUserInfoCompletedEventArgs e) { try { TrackViewerUser user = (TrackViewerUser)e.Result; txtName.Text = user.Name; txtEmailAddress.Text = user.Email; } catch { } }
void client_GetUserInfoCompleted(object sender, GetUserInfoCompletedEventArgs e) { T_SYS_USER user = e.Result; if (user != null && user.PASSWORD == paw.Password) { // SMT.SAAS.Main.CurrentContext.Common.CurrentConfig.CurrentUser.UserInfo = user; //TODO: 暂时注销用户权限 client.GetUserPermissionByUserAsync(user.SYSUSERID); personelClient.GetEmployeeDetailByIDAsync(user.EMPLOYEEID); MainPage mainPage = new MainPage(); App.Navigation(mainPage); } else { MessageBox.Show("用户名或密码错误!"); } }
void _client_GetUserInfoCompleted(object sender, GetUserInfoCompletedEventArgs e) { Model.UserLogin userLogin = new UserLogin(); if (e.Error == null) { if (e.Result != null) { userLogin.SysUserID = e.Result.SYSUSERID; userLogin.EmployeeID = e.Result.EMPLOYEEID; userLogin.UserName = e.Result.USERNAME; userLogin.UserPassword = e.Result.PASSWORD; } } if (OnGetUserInfoCompleted != null) { OnGetUserInfoCompleted(this, new GetEntityEventArgs <Model.UserLogin>(userLogin, e.Error)); } }
void client_GetUserInfoCompleted(object sender, GetUserInfoCompletedEventArgs e) { (App.Current as App).Userinfo = e.Result; client.CloseAsync(); }
//处理加载用户信息结果 void ShowGetUserInfoResult(object sender, GetUserInfoCompletedEventArgs e) { if (e.Result.Success) { DataManager.SetValue(DataKey.IWorld_Client_UserInfo, e.Result.Info); GetTicketsImport import = new GetTicketsImport { Token = DataManager.GetValue<string>(DataKey.IWorld_Client_Token) }; LotteryServiceClient client = new LotteryServiceClient(); client.GetTicketsCompleted += ShowGetTicketsResult; this.LoadingMessage = "加载彩票玩法信息(4/7)..."; client.GetTicketsAsync(import); } else { ShowLoginError(e.Result.Error); } }
void _client_GetUserInfoCompleted(object sender, GetUserInfoCompletedEventArgs e) { Model.UserLogin userLogin = new UserLogin(); if (e.Error == null) { if (e.Result != null) { userLogin.SysUserID = e.Result.SYSUSERID; userLogin.EmployeeID = e.Result.EMPLOYEEID; userLogin.UserName = e.Result.USERNAME; userLogin.UserPassword = e.Result.PASSWORD; } } if (OnGetUserInfoCompleted != null) OnGetUserInfoCompleted(this, new GetEntityEventArgs<Model.UserLogin>(userLogin, e.Error)); }