protected void Page_Load(object sender, EventArgs e) { AccessManager.RedirectIfDisabled(AppSettings.TitanFeatures.MoneyTransferEnabled); user = Member.Current; AppSettings.Reload(); BtcCryptocurrency = CryptocurrencyFactory.Get <BitcoinCryptocurrency>(); EthCryptocurrency = CryptocurrencyFactory.Get <EthereumCryptocurrency>(); XrpCryptocurrency = CryptocurrencyFactory.Get <RippleCryptocurrency>(); TokenCryptocurrency = CryptocurrencyFactory.Get <RippleCryptocurrency>(); PointsButton.Text = AppSettings.PointsName; PointsButton.Visible = ShowPointsView(); PointsToSpinsButton.Visible = AppSettings.TitanFeatures.SlotMachineEnabled; RofriquePlaceHolder.Visible = TitanFeatures.IsRofrique; if (AppSettings.Payments.TransferMode != TransferFundsMode.DenyAll) { TransferToOthersButton.Visible = true; TransferToOthersButton.Text = U3500.TRANSFERTOOTHER; } if (!Page.IsPostBack) { if (TitanFeatures.IsJ5WalterOffersFromHome) { BalanceButton.Visible = false; PointsButton.CssClass = "ViewSelected"; MenuMultiView.ActiveViewIndex = 1; } if (TitanFeatures.isBoazorSite) { BalanceButton.Visible = false; TransferToOthersButton.Visible = false; MenuMultiView.ActiveViewIndex = 1; } if (TitanFeatures.IsTrafficThunder) { UserBalancesPlaceHolder.Visible = false; } AppSettings.Reload(); LangAdder.Add(btnTransfer, L1.TRANSFER); LangAdder.Add(btnTransferPoints, L1.TRANSFER); LangAdder.Add(MPesaConfirmButton, L1.CONFIRM); //MPesa? if (Request.QueryString["mpesa"] != null) { StandardTransferPlaceHolder.Visible = false; MPesaTransferPlaceHolder2.Visible = true; var gateway = PaymentAccountDetails.GetFirstIncomeGateway <MPesaSapamaAccountDetails>(); MPesaAmount.Text = String.Format(U6005.TODEPOSITVIAMPESA, gateway.Username, gateway.Username, Money.Parse(Request.QueryString["mpesa"]).ToString()); } //Pre-selected tab if (Request.QueryString["button"] != null) { var button = (Button)MenuButtonPlaceHolder.FindControl("Button" + Request.QueryString["button"]); MenuButton_Click(button, null); } RadioFrom.Items.AddRange(GenerateHTMLButtons.TransferBalanceFromItems); //Points -> Main Balance (on/off) if (!AppSettings.Misc.IsTransferPointsToMainBalanceEnabled || !AppSettings.Points.PointsEnabled) { PointsTo.Items.RemoveAt(2); } if (!AppSettings.Payments.PointsToAdBalanceEnabled) { PointsTo.Items.Remove("Purchase balance"); } if (AppSettings.Payments.TransferMode == TransferFundsMode.AllowMainBalanceOnly || AppSettings.Payments.TransferMode == TransferFundsMode.AllowMainToPurchaseBalance) { MemberFrom.Items[1].Selected = true; MemberFrom.Items.RemoveAt(0); } else if (AppSettings.Payments.TransferMode == TransferFundsMode.AllowPointsOnly) { MemberFrom.Items.RemoveAt(1); } if (((AppSettings.Payments.CommissionToMainBalanceEnabled && !TitanFeatures.UserCommissionToMainBalanceEnabled) || (TitanFeatures.UserCommissionToMainBalanceEnabled && user.CommissionToMainBalanceEnabled) || TitanFeatures.IsRevolca) && user.CheckAccessCustomizeTradeOwnSystem) { RadioTo.Items.Add(new ListItem("", "Main balance")); TransferSameCommissionToMainLiteral.Visible = true; TransferSameCommissionToMainLiteral.Text = U5004.TRANSFERCOMMISSIONTOMAINFEE + ": <b>" + user.Membership.SameUserCommissionToMainTransferFee.ToString() + "%</b><br />"; if (user.Membership.SameUserCommissionToMainTransferFee == 0) { TransferSameCommissionToMainP.Visible = false; } } if (AppSettings.TitanFeatures.AdvertTrafficExchangeEnabled == false) { ListItem a = PointsTo.Items.FindByValue("Traffic balance"); ListItem b = RadioTo.Items.FindByValue("Traffic balance"); if (a != null) { PointsTo.Items.Remove(a); } if (b != null) { RadioTo.Items.Remove(b); } } if (!AppSettings.Payments.CashBalanceEnabled) { ListItem cb = RadioTo.Items.FindByValue("Cash balance"); if (cb != null) { RadioTo.Items.Remove(cb); } } if (!AppSettings.Payments.MarketplaceBalanceEnabled) { ListItem cb = RadioTo.Items.FindByValue("Marketplace balance"); if (cb != null) { RadioTo.Items.Remove(cb); } } #region TransferFee var pointsFee = user.Membership.OtherUserPointsToPointsTransferFee; var mainToMainFee = user.Membership.OtherUserMainToMainTransferFee; var mainToAdFee = user.Membership.OtherUserMainToAdTransferFee; if (AppSettings.Payments.TransferMode == TransferFundsMode.AllowPointsAndMainBalance) { TransferOthersMainToMainLiteral.Visible = true; TransferOthersMainToMainLiteral.Text = U5004.THEFEE.Replace("%a%", "<b>" + L1.MAINBALANCE + "</b>") .Replace("%n%", "<b>" + mainToMainFee.ToString() + "%</b>"); TransferOthersPointsLiteral.Visible = true; TransferOthersPointsLiteral.Text = U5004.THEFEE.Replace("%a%", "<b>" + AppSettings.PointsName + "</b>") .Replace("%n%", "<b>" + pointsFee.ToString() + "%</b>"); } else if (AppSettings.Payments.TransferMode == TransferFundsMode.AllowMainBalanceOnly) { TransferOthersMainToMainLiteral.Visible = true; TransferOthersMainToMainLiteral.Text = U5004.THEFEE.Replace("%a%", "<b>" + L1.MAINBALANCE + "</b>") .Replace("%n%", "<b>" + mainToMainFee.ToString() + "%</b>"); } else if (AppSettings.Payments.TransferMode == TransferFundsMode.AllowPointsOnly) { TransferOthersPointsLiteral.Visible = true; TransferOthersPointsLiteral.Text = U5004.THEFEE.Replace("%a%", "<b>" + AppSettings.PointsName + "</b>") .Replace("%n%", "<b>" + pointsFee.ToString() + "%</b>"); } else if (AppSettings.Payments.TransferMode == TransferFundsMode.AllowMainToPurchaseBalance) { TransferOthersMainToAdLiteral.Visible = true; TransferOthersMainToAdLiteral.Text = U5004.THEFEE.Replace("%a%", "<b>" + L1.MAINBALANCE + "</b>") .Replace("%n%", "<b>" + mainToAdFee.ToString() + "%</b>"); } #endregion SetRadioToValues(); //CalculatePointsValue(); SetProcessorValues(); SetupSpecialTransfersProperties(); if (RadioFrom.Items.Count == 0 || RadioTo.Items.Count == 0) { //No transfers available transferInputRow.Visible = false; TransferSameCommissionToMainLiteral.Visible = true; TransferSameCommissionToMainLiteral.Text = "<br/><br/>" + U5006.NOTRANSFEROPTIONS; transfertable.Visible = false; } if (TitanFeatures.IsTradeOwnSystem) { //Checking condition to display appropriate message if (!user.CheckAccessCustomizeTradeOwnSystem && user.CommissionToMainBalanceRequiredViewsMessageInt > 0) { CommissionTransferInfoDiv.Visible = true; CommissionTransferInfo.Text = String.Format(U6010.COMMISSIONBALANCETRANSFERINFO, user.CommissionToMainBalanceRequiredViewsMessageInt, AppSettings.RevShare.AdPack.AdPackName); } else if (!user.CheckAccessCustomizeTradeOwnSystem && user.CommissionToMainBalanceRequiredViewsMessageInt == 0) { CommissionTransferInfoDiv.Visible = true; CommissionTransferInfo.Text = String.Format(U6010.COMMISSIONBALANCETRANSFERNOACTIVEADPACKINFO, AppSettings.RevShare.AdPack.AdPackName); } else { CommissionTransferInfoDiv.Visible = false; } } } SetRadioItemsValues(RadioFrom); SetRadioItemsValues(RadioTo); SetRadioItemsValues(PointsTo); RemoveDuplicatesFromList(); PointsFrom.Items[0].Attributes.Add("data-content", "<img src = '../Images/OneSite/TransferMoney/Points.png' /> " + AppSettings.PointsName); if (!TitanFeatures.IsRofriqueWorkMines) { if (TitanFeatures.IsAhmed) { LangAdder.Add(BalanceButton, string.Format("{0}/{1}", U6012.DEPOSITCOINS, L1.TRANSFER)); } else { LangAdder.Add(BalanceButton, L1.TRANSFER); } } else { LangAdder.Add(BalanceButton, "Cash Deposits"); } LangAdder.Add(btnTransferMember, L1.TRANSFER); LangAdder.Add(CalculatePointsValueButton, U6007.CALCULATE); }
protected void Page_Load(object sender, EventArgs e) { AccessManager.RedirectIfDisabled(AppSettings.TitanFeatures.MoneyTransferEnabled); user = Member.Current; AppSettings.Reload(); BtcCryptocurrency = CryptocurrencyFactory.Get <BitcoinCryptocurrency>(); EthCryptocurrency = CryptocurrencyFactory.Get <EthereumCryptocurrency>(); XrpCryptocurrency = CryptocurrencyFactory.Get <RippleCryptocurrency>(); TokenCryptocurrency = CryptocurrencyFactory.Get <RippleCryptocurrency>(); DepositButton.Visible = AppSettings.Representatives.RepresentativesHelpDepositEnabled; if (!Page.IsPostBack) { if (BtcCryptocurrency.DepositEnabled) { BTCButton.Visible = !CryptocurrencyApiFactory.GetDepositApi(BtcCryptocurrency).AllowToUsePaymentButtons(); if (TitanFeatures.IsRofriqueWorkMines) { BTCButton.Text = "BTC Deposits"; } else { BTCButton.Text = "BTC"; } } if (TitanFeatures.IsFlotrading) { BalanceButton.CssClass = ""; BTCButton.CssClass = "ViewSelected"; MenuMultiView.ActiveViewIndex = 1; } if (TitanFeatures.IsTrafficThunder) { UserBalancesPlaceHolder.Visible = false; } AppSettings.Reload(); LangAdder.Add(DepositButton, U6010.DEPOSITVIAREPRESENTATIVE); LangAdder.Add(btnTransfer, L1.TRANSFER); LangAdder.Add(DepositViaRepresentativeButton, U6010.SENDTRANSFERMESSAGE); LangAdder.Add(MPesaConfirmButton, L1.CONFIRM); LangAdder.Add(BTCAmountRequiredFieldValidator, U2502.INVALIDMONEYFORMAT); LangAdder.Add(CalculatePointsValueButton, U6007.CALCULATE); //MPesa? if (Request.QueryString["mpesa"] != null) { StandardTransferPlaceHolder.Visible = false; MPesaTransferPlaceHolder2.Visible = true; var gateway = PaymentAccountDetails.GetFirstIncomeGateway <MPesaSapamaAccountDetails>(); MPesaAmount.Text = String.Format(U6005.TODEPOSITVIAMPESA, gateway.Username, gateway.Username, Money.Parse(Request.QueryString["mpesa"]).ToString()); } //Pre-selected tab if (Request.QueryString["button"] != null) { var button = (Button)MenuButtonPlaceHolder.FindControl("Button" + Request.QueryString["button"]); MenuButton_Click(button, null); } RadioFrom.Items.AddRange(GenerateHTMLButtons.DepositBalanceFromItems); if (TitanFeatures.IsRofriqueWorkMines && !CryptocurrencyApiFactory.GetDepositApi(BtcCryptocurrency).AllowToUsePaymentButtons()) { RadioFrom.Items.Add(new ListItem("", "BTC")); } BTCTo.Items.AddRange(GenerateHTMLButtons.BTCToItems); if (BtcCryptocurrency.DepositEnabled) { BTCValueLabel.Text = ClassicBTCValueLabel.Text = string.Format("<p class='alert alert-info'>{0}: <b>{1}</b></p>", U5003.ESTIMATEDBTCVALUE, BtcCryptocurrency.GetValue().ToString()); BTCValueLabel.Visible = ClassicBTCValueLabel.Visible = AppSettings.Site.CurrencyCode != "BTC"; //We don't want to show 1B = 1B BTCPointsFrom.Items.AddRange(GenerateHTMLButtons.BTCFromItems); BTCPointsFrom.SelectedIndex = 0; if (BTCPointsFrom.SelectedValue == "Wallet") { btnDepositBTC.Visible = true; if (BtcCryptocurrency.DepositTarget == DepositTargetBalance.PurchaseBalance) { BTCTo.SelectedValue = "AdBalance"; } else if (BtcCryptocurrency.DepositTarget == DepositTargetBalance.CashBalance) { BTCTo.SelectedValue = "CashBalance"; } else if (BtcCryptocurrency.DepositTarget == DepositTargetBalance.Wallet) { BTCTo.SelectedValue = "BTCWallet"; } } BTCButtonPanel.Visible = CryptocurrencyApiFactory.GetDepositApi(BtcCryptocurrency).AllowToUsePaymentButtons(); ClassicBTCPanel.Visible = !CryptocurrencyApiFactory.GetDepositApi(BtcCryptocurrency).AllowToUsePaymentButtons(); } if (((AppSettings.Payments.CommissionToMainBalanceEnabled && !TitanFeatures.UserCommissionToMainBalanceEnabled) || (TitanFeatures.UserCommissionToMainBalanceEnabled && user.CommissionToMainBalanceEnabled) || TitanFeatures.IsRevolca) && user.CheckAccessCustomizeTradeOwnSystem) { RadioTo.Items.Add(new ListItem("", "Main balance")); } if (!AppSettings.Payments.CashBalanceEnabled) { ListItem cb = RadioTo.Items.FindByValue("Cash balance"); if (cb != null) { RadioTo.Items.Remove(cb); } } if (!AppSettings.Payments.MarketplaceBalanceEnabled) { ListItem cb = RadioTo.Items.FindByValue("Marketplace balance"); if (cb != null) { RadioTo.Items.Remove(cb); } } SetRadioToValues(); SetProcessorValues(); SetupSpecialTransfersProperties(); if (RadioFrom.Items.Count == 0 || RadioTo.Items.Count == 0) { //No transfers available transferInputRow.Visible = false; TransferSameCommissionToMainLiteral.Visible = true; TransferSameCommissionToMainLiteral.Text = U5006.NOTRANSFEROPTIONS; transfertable.Visible = false; } if (TitanFeatures.IsTradeOwnSystem) { //Checking condition to display appropriate message if (!user.CheckAccessCustomizeTradeOwnSystem && user.CommissionToMainBalanceRequiredViewsMessageInt > 0) { CommissionTransferInfoDiv.Visible = true; CommissionTransferInfo.Text = String.Format(U6010.COMMISSIONBALANCETRANSFERINFO, user.CommissionToMainBalanceRequiredViewsMessageInt, AppSettings.RevShare.AdPack.AdPackName); } else if (!user.CheckAccessCustomizeTradeOwnSystem && user.CommissionToMainBalanceRequiredViewsMessageInt == 0) { CommissionTransferInfoDiv.Visible = true; CommissionTransferInfo.Text = String.Format(U6010.COMMISSIONBALANCETRANSFERNOACTIVEADPACKINFO, AppSettings.RevShare.AdPack.AdPackName); } else { CommissionTransferInfoDiv.Visible = false; } } if (BtcCryptocurrency.DepositEnabled && BtcCryptocurrency.DepositMinimum > 0) { AdditionalInfoPlaceHolder.Visible = true; AdditionalInfoLiteral.Text = String.Format(U6012.WARNINGMINBTCDEPOSIT, CryptocurrencyMoney.Parse(BtcCryptocurrency.DepositMinimum.ToString(), CryptocurrencyType.BTC).ToString()); } } SetRadioItemsValues(RadioFrom); SetRadioItemsValues(RadioTo); SetRadioItemsValues(BTCTo); RemoveDuplicatesFromList(); foreach (ListItem item in BTCPointsFrom.Items) { item.Attributes.Add("data-content", "<img src='../Images/OneSite/TransferMoney/GoCoin.png' /> BTC"); } if (!TitanFeatures.IsRofriqueWorkMines) { LangAdder.Add(BalanceButton, U5009.BALANCE); } else { LangAdder.Add(BalanceButton, "Cash Deposits"); } LangAdder.Add(btnDepositBTC, U4200.DEPOSIT); LangAdder.Add(classicbtcDepositBTC, U4200.DEPOSIT); }
protected void Page_Load(object sender, EventArgs e) { AccessManager.RedirectIfDisabled(AppSettings.TitanFeatures.MoneyPayoutEnabled); User = Member.Current; if (CreditLineManager.UserHasUnpaidLoans(User.Id)) { CashoutButton.Enabled = CashoutButtonConfirm.Enabled = WithdrawCryptocurrencyButton.Enabled = WithdrawCryptocurrencyConfirmButton.Enabled = CommissionCashoutButton.Enabled = false; UnpaidCreditLineInfo.Visible = true; } if (!Page.IsPostBack) { AppSettings.Reload(); #region Langs & Texts WithdrawCryptocurrencyButton.Text = L1.CASHOUT; WithdrawCryptocurrencyConfirmButton.Text = L1.CONFIRM; CashoutButtonConfirm.Text = L1.CONFIRM; SendWithdrawViaRepresentativeButton.Text = U6010.SENDTRANSFERMESSAGE; ProportionsGridView.EmptyDataText = U5004.NOPAYOUTHISTORY; MainBalanceButton.Text = L1.MAINBALANCE; MaxWithdrawalsButton.Text = U5004.MAXIMUMWITHDRAWAL; CommissionButton.Text = U5004.COMMISSIONBALANCE; WithdrawHistoryButton.Text = L1.HISTORY; CashoutButton.Text = CommissionCashoutButton.Text = L1.CASHOUT; MainBalanceLiteral.Text = User.MainBalance.ToString(); CommissionBalanceLiteral.Text = User.CommissionBalance.ToString(); WithdrawHistoryGridView.EmptyDataText = L1.NODATA; LangAdder.Add(RegularExpressionValidator3, L1.ER_BADPIN, true); LangAdder.Add(RegularExpressionValidator1, L1.ER_BADPIN, true); LangAdder.Add(RegularExpressionValidator2, L1.ER_BADPIN, true); LangAdder.Add(WithdrawViaRepresentativeButton, U6010.WITHDRAWVIAREPRESENTATIVE); LangAdder.Add(RequiredFieldValidator2, L1.REG_REQ_PIN, true); LangAdder.Add(RequiredFieldValidator4, L1.REG_REQ_PIN, true); LangAdder.Add(RequiredFieldValidator6, L1.REG_REQ_PIN, true); LangAdder.Add(RequiredFieldValidator1, L1.REQ_PP, true); LangAdder.Add(RequiredFieldValidator3, L1.REQ_PP, true); LangAdder.Add(RequiredFieldValidator7, U2502.INVALIDMONEYFORMAT, true); LangAdder.Add(BtcCodeValidator, U6000.INVALIDSECURITYCODE, true); LangAdder.Add(FiatCodeValidator, U6000.INVALIDSECURITYCODE, true); LangAdder.Add(REValidator, U3500.ILLEGALCHARS); #endregion PINDiv1.Visible = PINDiv2.Visible = BtcPinDiv.Visible = AppSettings.Registration.IsPINEnabled; var BtcCryptocurrency = CryptocurrencyFactory.Get <BitcoinCryptocurrency>(); var XrpCryptocurrency = CryptocurrencyFactory.Get <RippleCryptocurrency>(); var TokenCryptocurrency = CryptocurrencyFactory.Get <ERC20TokenCryptocurrency>(); //Check if user has some manual payouts waiting var UnpaidRequests = User.GetUnpaidPayoutRequests(); WarningPanel.Visible = UnpaidRequests.exists; WarningLiteral.Text = UnpaidRequests.text; //Generate proper Cashout options RadioFrom.Items.AddRange(GenerateHTMLButtons.CashoutFromItems); if (TitanFeatures.IsRofriqueWorkMines && !CryptocurrencyApiFactory.GetDepositApi(BtcCryptocurrency).AllowToUsePaymentButtons()) { RadioFrom.Items.Add(new ListItem("", "BTC")); } CommissionRadioFrom.Items.AddRange(GenerateHTMLButtons.CashoutFromItems); if (RadioFrom.Items.Count < 1) { PayoutPlaceHolder.Visible = false; WarningPanel.Visible = true; WarningLiteral.Text = U5006.PAYOUTUNAVAILABLE; } if (CommissionRadioFrom.Items.Count < 1) { CommissionPayoutPlaceHolder.Visible = false; CommissionWarningPanel.Visible = true; CommissionWarningLiteral.Text = U5006.PAYOUTUNAVAILABLE; } CommissionButton.Visible = AppSettings.Payments.CommissionBalanceWithdrawalEnabled; WithdrawViaRepresentativeButton.Visible = AppSettings.Representatives.RepresentativesHelpWithdrawalEnabled; //Lang CashoutButton.Text = CommissionCashoutButton.Text = L1.CASHOUT; LangAdder.Add(RegularExpressionValidator3, L1.ER_BADPIN, true); LangAdder.Add(RegularExpressionValidator1, L1.ER_BADPIN, true); LangAdder.Add(RegularExpressionValidator2, L1.ER_BADPIN, true); LangAdder.Add(WithdrawViaRepresentativeButton, U6010.WITHDRAWVIAREPRESENTATIVE); LangAdder.Add(RequiredFieldValidator2, L1.REG_REQ_PIN, true); LangAdder.Add(RequiredFieldValidator4, L1.REG_REQ_PIN, true); LangAdder.Add(RequiredFieldValidator6, L1.REG_REQ_PIN, true); LangAdder.Add(RequiredFieldValidator1, L1.REQ_PP, true); LangAdder.Add(RequiredFieldValidator3, L1.REQ_PP, true); LangAdder.Add(RequiredFieldValidator7, U2502.INVALIDMONEYFORMAT, true); LangAdder.Add(BtcCodeValidator, U6000.INVALIDSECURITYCODE, true); LangAdder.Add(FiatCodeValidator, U6000.INVALIDSECURITYCODE, true); //Pre-selected tab if (Request.QueryString["b"] != null) { var button = (Button)MenuButtonPlaceHolder.FindControl(Request.QueryString["b"] + "Button"); MenuButton_Click(button, null); } bool PercentOfInvestmentWIthdrawalEnabled = User.Membership.MaxWithdrawalAllowedPerInvestmentPercent < 1000000000; MaxWithdrawalsButton.Visible = AppSettings.Payments.ProportionalPayoutLimitsEnabled || PercentOfInvestmentWIthdrawalEnabled; if (PercentOfInvestmentWIthdrawalEnabled) { MaxWithdrawalAllowedPerInvestmentPercentPlaceHolder.Visible = true; PaymentProportionsManager ppm = new PaymentProportionsManager(User); Money invested = ppm.TotalPaidIn; Money withdrawn = ppm.TotalPaidOut; Money canwithdraw = Money.MultiplyPercent(invested, User.Membership.MaxWithdrawalAllowedPerInvestmentPercent); TotalPaidInLiteral.Text = invested.ToString(); TotalCashoutLiteral.Text = withdrawn.ToString(); HowmuchMoreCanBeWithdrawnLiteral.Text = String.Format(U6005.YOUCANWITHDRAWOFINVESTED, NumberUtils.FormatPercents(User.Membership.MaxWithdrawalAllowedPerInvestmentPercent), canwithdraw.ToString(), "<b>" + (canwithdraw - withdrawn).ToString() + "</b>"); } //Pre-selected tab if (Request.QueryString["b"] != null) { var button = (Button)MenuButtonPlaceHolder.FindControl(Request.QueryString["b"] + "Button"); MenuButton_Click(button, null); } BTCWithdrawalButton.Visible = BtcCryptocurrency.WithdrawalEnabled; XRPWithdrawalButton.Visible = XrpCryptocurrency.WithdrawalEnabled; ERC20TokenButton.Visible = TokenCryptocurrency.WithdrawalEnabled; BTCWithdrawalButton.Text = "BTC"; ERC20TokenButton.Text = String.Format("{0} ({1})", TokenCryptocurrency.Name, TokenCryptocurrency.Code); XRPWithdrawalButton.Text = "XRP"; if (RadioFrom.Items.Count < 1)//No payment processors, let's move to BTC/XRP/ETH tab on start { MainBalanceButton.Visible = false; if (BtcCryptocurrency.WithdrawalEnabled) { MenuButton_Click(BTCWithdrawalButton, null); } else if (XrpCryptocurrency.WithdrawalEnabled) { MenuButton_Click(XRPWithdrawalButton, null); } else if (TokenCryptocurrency.WithdrawalEnabled) { MenuButton_Click(ERC20TokenButton, null); } else { MainBalanceButton.Visible = true; } if (TitanFeatures.IsClickmyad) { MenuButton_Click(XRPWithdrawalButton, null); } } RadioFrom.SelectedIndex = 0; SetProcessorValues(); } SetDropdownItemsValues(RadioFrom); if (TitanFeatures.IsClickmyad) { BTCWithdrawalButton.Visible = false; } if (TitanFeatures.IsTrafficThunder) { MainBalanceButton.Visible = false; MaxWithdrawalsButton.Visible = false; } }