private void llblNotifierType_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { if (MessageBox.Show("Are you sure you want to change the Notifier type?\r\n\r\nIf you continue this will reset any existing configuration.", "Notifier type", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation) == System.Windows.Forms.DialogResult.Yes) { List <ConfigVariable> configVars = new List <ConfigVariable>(); foreach (ConfigVariable cv in editingNotifierEntry.ConfigVariables) { configVars.Add(cv.Clone()); } NotifierEntry newNotifierEntry = AgentHelper.CreateNewNotifier(); if (newNotifierEntry != null) { editingNotifierEntry = null; editingNotifierEntry = newNotifierEntry; editingNotifierEntry.ConfigVariables = configVars; ApplyConfigToControls(); if (AgentHelper.LastShowRawEditOnStartOption) { llblRawEdit_LinkClicked(sender, e); } } } }