public void RetrieveSellerInfo() { Dictionary<string,string> parameters =new Dictionary<string, string>(); parameters.Add("token_id",GlobalVariable.token_id); App.INSTANCE.networknamager.CheckToken (parameters, (Tap5050WebResponse response) => { nn_activity.RunOnUiThread(()=>{ RemoveSpinner(rootview); }); if(response.available){ var result=(Tap5050Result)response.parsedobject; if(result.result_success.Equals("Y")){ App.INSTANCE.networknamager.GetAccountInfo (parameters, (Tap5050WebResponse getaccountresponse) => { if(getaccountresponse.available){ accountinfo=(Tap5050AccountInfo)getaccountresponse.parsedobject; nn_activity.RunOnUiThread(()=>{ nametextview.Text=accountinfo.first_name+" "+accountinfo.last_name; addresstextview.Text=accountinfo.mail_address_line_1+"\n"+accountinfo.mail_address_line_2+"\n"+accountinfo.mail_city +","+accountinfo.mail_prov_state+","+accountinfo.mail_postal; mobiletextview.Text=accountinfo.phone_mobile; emailtextview.Text=accountinfo.email; dobtextview.Text=accountinfo.user_birthdate.Split('T')[0]; }); } else{ nn_activity.ShowCustomAlterDialogFragment(GlobalScreenData.WebExceptionTitle,getaccountresponse.exceptionreport.errormessage,GlobalScreenData.WebExceptionPositive,GlobalScreenData.WebExceptionNegative,"exceptiondialog.accountinfo.getaccountinfo"); } }); } else{ nn_activity.ShowCustomAlterDialogFragment(GlobalScreenData.InvalidetokenTitle,GlobalScreenData.InvalidetokenMessage,GlobalScreenData.DefaultPositive,"invalidedialog.accounbtinfo.checktoken"); } }else { nn_activity.ShowCustomAlterDialogFragment(GlobalScreenData.WebExceptionTitle,response.exceptionreport.errormessage,GlobalScreenData.WebExceptionPositive,GlobalScreenData.WebExceptionNegative,"exceptiondialog.accountinfo.checktoken"); } }); }
public void ShowAccountEdit(Tap5050AccountInfo accountinfo) { if(!IsFinishing){ var fragment =new AccountEditFragment (); fragment.nn_accountinfo = accountinfo; var ft = SupportFragmentManager.BeginTransaction (); ft.Replace (Resource.Id.home_content_framelayout, fragment); ft.AddToBackStack (null); ft.CommitAllowingStateLoss (); currentfragment = (global::Android.Support.V4.App.Fragment)fragment; } }