private void pluginListBox_SelectedIndexChanged(object sender, EventArgs e) { if (this.selectedPlugin != null) { this.selectedPlugin.HideConfigForm(); } object o = this.pluginListBox.SelectedItem; if (o != null) { this.selectedPlugin = o as ILogExpertPluginConfigurator; if (o is ILogExpertPluginConfigurator) { if (this.selectedPlugin.HasEmbeddedForm()) { this.configPluginButton.Enabled = false; this.configPluginButton.Visible = false; this.selectedPlugin.ShowConfigForm(this.pluginPanel); } else { this.configPluginButton.Enabled = true; this.configPluginButton.Visible = true; } } } else { this.configPluginButton.Enabled = false; this.configPluginButton.Visible = true; } }
private void pluginListBox_SelectedIndexChanged(object sender, EventArgs e) { _selectedPlugin?.HideConfigForm(); object o = listBoxPlugin.SelectedItem; if (o != null) { _selectedPlugin = o as ILogExpertPluginConfigurator; if (o is ILogExpertPluginConfigurator) { if (_selectedPlugin.HasEmbeddedForm()) { buttonConfigPlugin.Enabled = false; buttonConfigPlugin.Visible = false; _selectedPlugin.ShowConfigForm(panelPlugin); } else { buttonConfigPlugin.Enabled = true; buttonConfigPlugin.Visible = true; } } } else { buttonConfigPlugin.Enabled = false; buttonConfigPlugin.Visible = true; } }
private void pluginListBox_SelectedIndexChanged(object sender, EventArgs e) { if (this.selectedPlugin != null) { this.selectedPlugin.HideConfigForm(); } object o = this.pluginListBox.SelectedItem; if (o != null) { this.selectedPlugin = o as ILogExpertPluginConfigurator; if (o is ILogExpertPluginConfigurator) { if (this.selectedPlugin.HasEmbeddedForm()) { this.configPluginButton.Enabled = false; this.configPluginButton.Visible = false; this.selectedPlugin.ShowConfigForm(this.pluginPanel); } else { this.configPluginButton.Enabled = true; this.configPluginButton.Visible = true; } } } else { this.configPluginButton.Enabled = false; this.configPluginButton.Visible = true; } }