Esempio n. 1
0
        private void LoadShippingAdmin(string providerName)
        {
            plhShippingProvider.Controls.Clear();

            //Get an instance of the provider
            IShippingProvider shippingProvider = StoreController.GetShippingProvider(providerName);

            //Create an instance of the provider's admin control
            ProviderControlBase providerControl = shippingProvider.GetAdminControl(this, ControlPath);

            providerControl.ID = "ShippingProvider";

            plhShippingProvider.Controls.Add(providerControl);
        }