private void DestroyBasic() { try { MainRecyclerView = null !; MainPlansRecyclerView = null !; LayoutManagerView = null !; PlansLayoutManagerView = null !; FeaturesAdapter = null !; PlansAdapter = null !; InitPayPalPayment = null !; InitRazorPay = null !; PayStackPayment = null !; PayStackPayment = null !; BillingPayment = null !; IconClose = null !; PayId = null !; Price = null !; PayType = null !; ItemUpgrade = null !; PaySeraPayment = null !; } catch (Exception e) { Methods.DisplayReportResultTrack(e); } }
private void PlansAdapterOnItemClick(object sender, UpgradeGoProAdapterClickEventArgs e) { try { if (e.Position > -1) { ItemUpgrade = PlansAdapter.GetItem(e.Position); if (ItemUpgrade != null) { var arrayAdapter = new List <string>(); var dialogList = new MaterialDialog.Builder(this).Theme(AppSettings.SetTabDarkTheme ? AFollestad.MaterialDialogs.Theme.Dark : AFollestad.MaterialDialogs.Theme.Light); if (AppSettings.ShowInAppBilling && Client.IsExtended) { arrayAdapter.Add(GetString(Resource.String.Btn_GooglePlay)); } if (AppSettings.ShowPaypal) { arrayAdapter.Add(GetString(Resource.String.Btn_Paypal)); } if (AppSettings.ShowCreditCard) { arrayAdapter.Add(GetString(Resource.String.Lbl_CreditCard)); } if (AppSettings.ShowBankTransfer) { arrayAdapter.Add(GetString(Resource.String.Lbl_BankTransfer)); } dialogList.Items(arrayAdapter); dialogList.NegativeText(GetText(Resource.String.Lbl_Close)).OnNegative(this); dialogList.AlwaysCallSingleChoiceCallback(); dialogList.ItemsCallback(this).Build().Show(); } } } catch (Exception exception) { Console.WriteLine(exception); } }
private void DestroyBasic() { try { MainRecyclerView = null; MainPlansRecyclerView = null; LayoutManagerView = null; PlansLayoutManagerView = null; FeaturesAdapter = null; PlansAdapter = null; InitPayPalPayment = null; BillingPayment = null; IconClose = null; PayId = null; Price = null; PayType = null; ItemUpgrade = null; } catch (Exception e) { Console.WriteLine(e); } }
private void PlansAdapterOnItemClick(object sender, UpgradeGoProAdapterClickEventArgs e) { try { switch (e.Position) { case > -1: { ItemUpgrade = PlansAdapter.GetItem(e.Position); if (ItemUpgrade != null) { var arrayAdapter = new List <string>(); var dialogList = new MaterialDialog.Builder(this).Theme(AppSettings.SetTabDarkTheme ? AFollestad.MaterialDialogs.Theme.Dark : AFollestad.MaterialDialogs.Theme.Light); switch (AppSettings.ShowInAppBilling) { case true when Client.IsExtended: arrayAdapter.Add(GetString(Resource.String.Btn_GooglePlay)); break; } switch (AppSettings.ShowPaypal) { case true: arrayAdapter.Add(GetString(Resource.String.Btn_Paypal)); break; } switch (AppSettings.ShowCreditCard) { case true: arrayAdapter.Add(GetString(Resource.String.Lbl_CreditCard)); break; } switch (AppSettings.ShowBankTransfer) { case true: arrayAdapter.Add(GetString(Resource.String.Lbl_BankTransfer)); break; } switch (AppSettings.ShowRazorPay) { case true: arrayAdapter.Add(GetString(Resource.String.Lbl_RazorPay)); break; } switch (AppSettings.ShowPayStack) { case true: arrayAdapter.Add(GetString(Resource.String.Lbl_PayStack)); break; } switch (AppSettings.ShowCashFree) { case true: arrayAdapter.Add(GetString(Resource.String.Lbl_CashFree)); break; } switch (AppSettings.ShowPaySera) { case true: arrayAdapter.Add(GetString(Resource.String.Lbl_PaySera)); break; } dialogList.Items(arrayAdapter); dialogList.NegativeText(GetText(Resource.String.Lbl_Close)).OnNegative(this); dialogList.AlwaysCallSingleChoiceCallback(); dialogList.ItemsCallback(this).Build().Show(); } break; } } } catch (Exception exception) { Methods.DisplayReportResultTrack(exception); } }