Esempio n. 1
0
        private void LoadTaxAdmin(string providerName)
        {
            plhTaxProvider.Controls.Clear();

            //Get an instance of the provider
            ITaxProvider taxProvider = StoreController.GetTaxProvider(providerName);

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

            providerControl.ID = "TaxProvider";

            plhTaxProvider.Controls.Add(providerControl);
        }
Esempio n. 2
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);
        }
Esempio n. 3
0
        private void LoadAddressAdmin(string addressName)
        {
            plhAddressProvider.Controls.Clear();

            //Get an instance of the provider
            IAddressProvider addressProvider = StoreController.GetAddressProvider(addressName);

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

            providerControl.ID = "AddressProvider";

            plhAddressProvider.Controls.Add(providerControl);
        }
Esempio n. 4
0
        private void LoadAddressProvider()
        {
            plhAddressProvider.Controls.Clear();

            //Get an instance of the provider
            IAddressProvider addressProvider = StoreController.GetAddressProvider(StoreSettings.AddressName);

            //Create an instance of the provider's profile control
            ProviderControlBase providerControl = addressProvider.GetProfileControl(this, ControlPath);

            providerControl.ModuleConfiguration = ModuleConfiguration;
            providerControl.ParentControl       = this;
            providerControl.EditComplete       += editControl_EditComplete;
            providerControl.ProviderError      += editControl_Error;

            plhAddressProvider.Controls.Add(providerControl);
        }
Esempio n. 5
0
        public ProviderControlBase GetProfileControl(PortalModuleBase parentControl, string modulePath)
        {
            ProviderControlBase profileControl = LoadControl(parentControl, modulePath, "Profile");

            return(profileControl);
        }