private void cmdConfig_Click(object sender, EventArgs e) { if (cboNotifier.SelectedItem != null) { try { AgentRegistration ar = (AgentRegistration)cboNotifier.SelectedItem; INotifier notifier = NotifierEntry.CreateNotifierEntry(ar.AssemblyPath, ar.ClassName); if (notifier != null) { SelectedEntry.Notifier = notifier; if (SelectedEntry.Configuration == null) { SelectedEntry.Configuration = ""; } string newConfig = notifier.ConfigureAgent(SelectedEntry.Configuration); if (newConfig.Length > 0) { SelectedEntry.Configuration = newConfig; CheckOkEnable(); } } } catch (Exception ex) { MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } } }