Exemple #1
0
        /// <summary>
        ///   Bind XML Source settings
        /// </summary>
        private void LoadXmlDataProviderSettingsControl()
        {
            var providerName = rblXmlDataProvider.SelectedValue;

            if (string.IsNullOrEmpty(providerName))
            {
                return;
            }
            var provider = XmlDataProvider.Instance(providerName);

            if (provider != null)
            {
                _sourceSettings = (BaseSourceSettings)LoadControl(provider.SettingsControlPath());
                SourceSettingsPlaceHolder.Controls.Add(_sourceSettings);
                _sourceSettings.LoadSettings();
            }
            else
            {
                SourceSettingsPlaceHolder.Controls.Add(new LiteralControl(string.Format("System was not able to load Settings Control for {0}", providerName)));
            }
        }
Exemple #2
0
        private void LoadXmlRenderingSettingsControl()
        {
            var providername = rblXmlRendering.SelectedValue;

            if (string.IsNullOrEmpty(providername))
            {
                return;
            }
            var provider = XmlRenderingProvider.Instance(providername);

            if (provider == null)
            {
                XmlRenderingPlaceHolder.Controls.Add(new LiteralControl(string.Format("System was not able to load Settings Control for {0}", providername)));
            }
            else
            {
                var loadControl1 = LoadControl(provider.SettingsControlPath());
                _renderingSettings = (BaseSourceSettings)loadControl1;
                _renderingSettings.ModuleContext = ModuleContext;
                XmlRenderingPlaceHolder.Controls.Add(_renderingSettings);
                _renderingSettings.LoadSettings();
            }
        }