private void ShowLogin() { _isLoginControlEnabled = true; var login = new OauthLogin(); ApplicationBar.IsVisible = false; Pivot.Visibility = Visibility.Collapsed; login.LoginFinished += OauthLoginFinished; LayoutRoot.Children.Add(login); }
private void setGetUDataParams(string code, string state) { if (GetUData == null) { GetUData = new Models.UserData(); } Dictionary <string, string> result = OauthLogin.getUserInfo(code); GetUData.OpenId = result[OauthLogin.OPEN_ID]; GetUData.Nick_Name = result[OauthLogin.NICK_NAME]; GetUData.Head_Img_Url = result[OauthLogin.HEAD_IMG_URL]; GetUData.Controller = state; }
//[Dependency] //public RMS_MenusBiz uBiz { get; set; } //[Dependency] //public RMS_UserBiz userBiz { get; set; } public ActionResult Index() { string code = Request["code"]; if (GetUData == null) { GetUData = new Models.UserData(); } GetUData.OpenId = "ov0HljubVsu4mOIfZsTMry_s3CNM"; if (code != null && code != "") { GetUData.OpenId = OauthLogin.getOpenId(code); } return(View()); }