private static HtmlGenericControl CreateMethodListControl(commonVariables.WithdrawalMethod paymentCode)
    {
        HtmlGenericControl list = new HtmlGenericControl("li");

        list.ID = string.Format("w{0}", paymentCode);

        return(list);
    }
    private static void SetWithdrawalMethodListLink(commonVariables.WithdrawalMethod paymentCode, HtmlGenericControl withdrawalTabs, string sourcePage)
    {
        HtmlGenericControl anchor;
        HtmlGenericControl list;

        bool isApp = commonCookie.CookieIsApp == "1";

        switch (paymentCode)
        {
        case commonVariables.WithdrawalMethod.BankTransfer:

            list = CreateMethodListControl(paymentCode);

            anchor = CreateMethodLinkControl(list.ID, paymentCode.ToString(), sourcePage);

            anchor.Attributes.Add("href", "/Withdrawal/BankTransfer.aspx");

            list.Controls.Add(anchor);
            withdrawalTabs.Controls.Add(list);
            break;

        case commonVariables.WithdrawalMethod.VenusPoint:
            list = CreateMethodListControl(paymentCode);

            anchor = CreateMethodLinkControl(list.ID, paymentCode.ToString(), sourcePage);

            anchor.Attributes.Add("href", "/Withdrawal/VenusPoint.aspx");

            list.Controls.Add(anchor);
            withdrawalTabs.Controls.Add(list);
            break;

        case commonVariables.WithdrawalMethod.PayGo:
            list = CreateMethodListControl(paymentCode);

            anchor = CreateMethodLinkControl(list.ID, paymentCode.ToString(), sourcePage);

            anchor.Attributes.Add("href", "/Withdrawal/PayGo.aspx");

            list.Controls.Add(anchor);
            withdrawalTabs.Controls.Add(list);
            break;

        case commonVariables.WithdrawalMethod.WingMoney:
            list = CreateMethodListControl(paymentCode);

            anchor = CreateMethodLinkControl(list.ID, paymentCode.ToString(), sourcePage);

            anchor.Attributes.Add("href", "/Withdrawal/WingMoney.aspx");

            list.Controls.Add(anchor);
            withdrawalTabs.Controls.Add(list);
            break;

        case commonVariables.WithdrawalMethod.Neteller:
            list = CreateMethodListControl(paymentCode);

            anchor = CreateMethodLinkControl(list.ID, paymentCode.ToString(), sourcePage);

            anchor.Attributes.Add("href", "/Withdrawal/Neteller.aspx");

            list.Controls.Add(anchor);
            withdrawalTabs.Controls.Add(list);
            break;

        case commonVariables.WithdrawalMethod.Baokim:
            list = CreateMethodListControl(paymentCode);

            anchor = CreateMethodLinkControl(list.ID, paymentCode.ToString(), sourcePage);

            anchor.Attributes.Add("href", "/Withdrawal/Baokim.aspx");

            list.Controls.Add(anchor);
            withdrawalTabs.Controls.Add(list);
            break;

        default:
            break;
        }
    }