public InsertTextWindow(Configuration.GeSHiConfigSection config, String text) { InitializeComponent(); if (config != null) { comboBoxNumbering.Visible = config.showNumbering; textBoxStart.Visible = config.showNumbering; comboBoxStyle.Visible = config.showNumbering; checkBoxCollapsible.Visible = config.showCollapsible; comboBoxLang.Items.Clear(); foreach (Configuration.LanguageElement lang in config.Langauges) { comboBoxLang.Items.Add(lang.Value); } comboBoxStyle.Items.Clear(); foreach (Configuration.StyleElement style in config.Styles) { comboBoxStyle.Items.Add(new StylePair(style.Name, style.Value)); } } comboBoxLang.SelectedIndex = 0; comboBoxNumbering.SelectedIndex = 0; comboBoxStyle.SelectedIndex = 0; richTextBox1.Text = text; }
public override void Initialize( IProperties pluginOptions ) { base.Initialize(pluginOptions); String path = Assembly.GetExecutingAssembly().Location; System.Configuration.Configuration config = ConfigurationManager.OpenExeConfiguration(path); m_config = config.GetSection("GeSHiConfig") as Configuration.GeSHiConfigSection; }
public override void Initialize(IProperties pluginOptions) { base.Initialize(pluginOptions); String path = Assembly.GetExecutingAssembly().Location; System.Configuration.Configuration config = ConfigurationManager.OpenExeConfiguration(path); m_config = config.GetSection("GeSHiConfig") as Configuration.GeSHiConfigSection; }