private void btnAddEntry_Click(object sender, EventArgs e)
 {
     using (var entryEditorForm = new EntryEditorForm(EntryEditorMode.Add, null))
     {
         if (entryEditorForm.ShowDialog() == DialogResult.OK)
         {
             Program.ApplicationConfig.RunnerEntries.Add(entryEditorForm.GetRunnerEntry());
             UpdateListEntries();
         }
     }
 }
        private void EditEntry(ListViewItem listViewItem)
        {
            var runnerEntry = (RunnerEntry)listViewItem.Tag;

            using (var entryEditorForm = new EntryEditorForm(EntryEditorMode.Edit, runnerEntry))
            {
                if (entryEditorForm.ShowDialog() == DialogResult.OK)
                {
                    var index = Program.ApplicationConfig.RunnerEntries.IndexOf(runnerEntry);
                    Program.ApplicationConfig.RunnerEntries[index] = entryEditorForm.GetRunnerEntry();
                    UpdateListEntries();
                }
            }
        }