private void m_DeleteBillingMethodButton_Click(object sender, EventArgs e)
        {
            if (m_BillingMethodTabControl.SelectedTab != null)
            {
                NetTermUserControl netControl = GetControl(m_BillingMethodTabControl.SelectedTab, typeof(NetTermUserControl)) as NetTermUserControl;
                if (netControl != null)
                {
                    netControl.BillingMethod.IsActive = false;
                }
                else
                {
                    CreditCardUserControl ccControl = GetControl(m_BillingMethodTabControl.SelectedTab, typeof(CreditCardUserControl)) as CreditCardUserControl;
                    if (ccControl != null)
                    {
                        ccControl.BillingMethod.IsActive = false;
                    }
                }
            }

            LoadBillingMethods();
        }
        private void AddBillingMethod(BillingMethod billingMethod)
        {
            String      paymentMethod;
            UserControl billingMethodUC;

            if (billingMethod.PaymentMethodId == 1)
            {
                paymentMethod   = "Credit Card";
                billingMethodUC = new CreditCardUserControl(
                    billingMethod, m_Customer.Addresses);
            }
            else
            {
                paymentMethod   = "Net Term";
                billingMethodUC = new NetTermUserControl(billingMethod);
            }

            TabPage tabPage = new TabPage(paymentMethod);

            tabPage.Controls.Add(billingMethodUC);
            m_BillingMethodTabControl.TabPages.Add(tabPage);
        }