protected override void DoBindSettingsToControl(IExtensionSetting setting)
 {
     var ctrl = this.GetSettingControl<BlogSettingControl>();
     var thisSetting = (BlogSetting) setting;
     ctrl.txtMetaWeblogAddress.Text = thisSetting.MetaWeblogAddress;
     ctrl.txtUserName.Text = thisSetting.UserName;
     ctrl.txtPassword.Text = thisSetting.Password;
 }
Esempio n. 2
0
        protected override void DoBindSettingsToControl(IExtensionSetting setting)
        {
            var ctrl        = this.GetSettingControl <BlogSettingControl>();
            var thisSetting = (BlogSetting)setting;

            ctrl.txtMetaWeblogAddress.Text = thisSetting.MetaWeblogAddress;
            ctrl.txtUserName.Text          = thisSetting.UserName;
            ctrl.txtPassword.Text          = thisSetting.Password;
        }
        protected override void DoBindSettingsToControl(IExtensionSetting setting)
        {
            var encodingInforArray = Encoding.GetEncodings().OrderBy(p => p.DisplayName).ToList();

            var thisSetting = (ImportFromWebSetting) setting;
            var thisSettingControl = this.GetSettingControl<ImportFromWebSettingControl>();
            thisSettingControl.chkEmbedImages.Checked = thisSetting.EmbedImages;
            thisSettingControl.cbEncoding.SelectedItem =
                encodingInforArray.First(enc => enc.CodePage == thisSetting.EncodingCodePage);
        }
        protected override void DoBindSettingsToControl(IExtensionSetting setting)
        {
            var encodingInforArray = Encoding.GetEncodings().OrderBy(p => p.DisplayName).ToList();

            var thisSetting        = (ImportFromWebSetting)setting;
            var thisSettingControl = this.GetSettingControl <ImportFromWebSettingControl>();

            thisSettingControl.chkEmbedImages.Checked  = thisSetting.EmbedImages;
            thisSettingControl.cbEncoding.SelectedItem =
                encodingInforArray.First(enc => enc.CodePage == thisSetting.EncodingCodePage);
        }
 protected override void DoBindSettingsToControl(IExtensionSetting setting)
 {
     var thisSetting = (InsertSourceCodeSetting) setting;
     var thisSettingControl = this.GetSettingControl<InsertSourceCodeSettingControl>();
     thisSettingControl.chkAutoLinks.Checked = thisSetting.AutoLinks;
     thisSettingControl.chkCollapse.Checked = thisSetting.Collapse;
     thisSettingControl.chkGutter.Checked = thisSetting.Gutter;
     thisSettingControl.chkSmartTabs.Checked = thisSetting.SmartTabs;
     thisSettingControl.numTabSize.Value = thisSetting.TabSize;
     thisSettingControl.chkShowToolbar.Checked = thisSetting.ShowToolbar;
 }
Esempio n. 6
0
        protected override void DoBindSettingsToControl(IExtensionSetting setting)
        {
            var thisSetting        = (InsertSourceCodeSetting)setting;
            var thisSettingControl = this.GetSettingControl <InsertSourceCodeSettingControl>();

            thisSettingControl.chkAutoLinks.Checked   = thisSetting.AutoLinks;
            thisSettingControl.chkCollapse.Checked    = thisSetting.Collapse;
            thisSettingControl.chkGutter.Checked      = thisSetting.Gutter;
            thisSettingControl.chkSmartTabs.Checked   = thisSetting.SmartTabs;
            thisSettingControl.numTabSize.Value       = thisSetting.TabSize;
            thisSettingControl.chkShowToolbar.Checked = thisSetting.ShowToolbar;
        }
Esempio n. 7
0
 /// <summary>
 /// Binds the setting to the current setting <see cref="UserControl"/>.
 /// </summary>
 internal void BindSetting(IExtensionSetting setting)
 {
     this.DoBindSettingsToControl(setting);
 }
Esempio n. 8
0
 /// <summary>
 /// Binds the extension setting represented by <paramref name="setting"/> parameter to
 /// the current setting UserControl.
 /// </summary>
 /// <param name="setting">The setting data that needs to be bound to the current setting UserControl.</param>
 protected abstract void DoBindSettingsToControl(IExtensionSetting setting);