| | |
| | | Button btnUserIcon = new Button () { |
| | | X = Application.GetRealWidth (27), |
| | | Width = Application.GetRealWidth (96), |
| | | Height = Application.GetRealHeight (96), |
| | | Height = Application.GetRealWidth (96), |
| | | Gravity = Gravity.CenterVertical, |
| | | Radius = 5, |
| | | BorderColor = SkinStyle.Current.Transparent, |
| | |
| | | |
| | | |
| | | var requestJson = Newtonsoft.Json.JsonConvert.SerializeObject (requestObj); |
| | | var revertObj = MainPage.RequestHttps (API.DeletedSubAccount, requestJson, true); |
| | | var revertObj = MainPage.RequestHttps (API.DeletedSubAccount, requestJson); |
| | | if (revertObj.StateCode.ToUpper() == "SUCCESS") { |
| | | Application.RunOnMainThread (() => { |
| | | subaccountList.Remove (subaccount); |
| | |
| | | }; |
| | | var requestJson = Newtonsoft.Json.JsonConvert.SerializeObject (requestObj); |
| | | |
| | | var revertObj = MainPage.RequestHttps (API.BindSubAccount, requestJson, true); |
| | | var revertObj = MainPage.RequestHttps (API.BindSubAccount, requestJson); |
| | | if (revertObj.StateCode.ToUpper () == "SUCCESS") { |
| | | var requestObj2 = new GetSubAccountByDistributedMarkObj () { |
| | | DistributedMark = UserConfig.Instance.CurrentRegion.Id, |
| | | }; |
| | | //var requestObj2 = new GetSubAccountListObj (); |
| | | var requesetJson2 = Newtonsoft.Json.JsonConvert.SerializeObject (requestObj2); |
| | | var requesetRevertObj2 = MainPage.RequestHttps (API.GetSubAccountByDistributedMark, requesetJson2, true); |
| | | var requesetRevertObj2 = MainPage.RequestHttps (API.GetSubAccountByDistributedMark, requesetJson2); |
| | | if (requesetRevertObj2.StateCode.ToUpper () == "SUCCESS") { |
| | | var responseDataObj = Newtonsoft.Json.JsonConvert.DeserializeObject<List<SubAccountRes>> (requesetRevertObj2.ResponseData.ToString ()); |
| | | subaccountList = responseDataObj; |
| | |
| | | new Alert ("", Language.StringByID (R.MyInternationalizationString.FailureToServer), |
| | | Language.StringByID (R.MyInternationalizationString.Close)).Show (); |
| | | }); |
| | | Console.WriteLine (ex.ToString()); |
| | | Utlis.WriteLine (ex.ToString()); |
| | | } finally { |
| | | Application.RunOnMainThread (() => { |
| | | MainPage.Loading.Hide (); |