Пример #1
0
 private void llblEditConfigVars_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     try
     {
         if (editingNotifierEntry != null)
         {
             EditConfigVariables editConfigVariables = new EditConfigVariables();
             editConfigVariables.SelectedConfigVariables = editingNotifierEntry.ConfigVariables;
             if (editConfigVariables.ShowDialog() == System.Windows.Forms.DialogResult.OK)
             {
                 editingNotifierEntry.ConfigVariables = editConfigVariables.SelectedConfigVariables;
             }
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
     }
 }
Пример #2
0
 private void llblEditConfigVars_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     try
     {
         if (SelectedMonitorPack != null)
         {
             EditConfigVariables editConfigVariables = new EditConfigVariables();
             editConfigVariables.SelectedConfigVariables = SelectedMonitorPack.ConfigVariables;
             if (editConfigVariables.ShowDialog() == System.Windows.Forms.DialogResult.OK)
             {
                 SelectedMonitorPack.ConfigVariables = editConfigVariables.SelectedConfigVariables;
                 RequestCollectorsRefresh            = true;
             }
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
     }
 }