private void BtnSkipOnClick(object sender, EventArgs e) { try { DialogAddCredits.Hide(); DialogAddCredits.Dismiss(); } catch (Exception exception) { Console.WriteLine(exception); } }
//Open walletFragment with Google private void CreditAdapterOnItemClick(object sender, CreditAdapterViewHolderClickEventArgs e) { try { int position = e.Position; if (position > -1) { CreditsClass item = CreditAdapter.GetItem(position); if (item != null) { ItemCredits = item; DialogButtonType = CreditType; var arrayAdapter = new List <string>(); var dialogList = new MaterialDialog.Builder(ActivityContext).Theme(AppSettings.SetTabDarkTheme ? Theme.Dark : Theme.Light); if (AppSettings.ShowInAppBilling && Client.IsExtended) { arrayAdapter.Add(ActivityContext.GetString(Resource.String.Btn_GooglePlay)); } if (AppSettings.ShowPaypal) { arrayAdapter.Add(ActivityContext.GetString(Resource.String.Btn_Paypal)); } if (AppSettings.ShowCreditCard) { arrayAdapter.Add(ActivityContext.GetString(Resource.String.Lbl_CreditCard)); } if (AppSettings.ShowBankTransfer) { arrayAdapter.Add(ActivityContext.GetString(Resource.String.Lbl_BankTransfer)); } dialogList.Items(arrayAdapter); dialogList.NegativeText(ActivityContext.GetText(Resource.String.Lbl_Close)).OnNegative(this); dialogList.AlwaysCallSingleChoiceCallback(); dialogList.ItemsCallback(this).Build().Show(); DialogAddCredits.Hide(); DialogAddCredits.Dismiss(); } } } catch (Exception exception) { Console.WriteLine(exception); } }