private void lstResearches_DoubleClick(object sender, EventArgs e)
 {
     if (lstResearches.SelectedIndex == -1)
         return;
     FormAddResearch form = new FormAddResearch();
     form.Name = "Переименовать исследование";
     DialogResult res = form.ShowDialog();
     if (res == System.Windows.Forms.DialogResult.OK)
     {
         Research r = (Research)lstResearches.SelectedItem;
         r.Name = form.ResearchName;
         lstResearches.Items[lstResearches.SelectedIndex] = r;
     }
 }
        private void btnAddNewResearch_Click(object sender, EventArgs e)
        {
            FormAddResearch form = new FormAddResearch();
            DialogResult res = form.ShowDialog();

            if (res == System.Windows.Forms.DialogResult.OK)
            {
                lstResearches.Items.Add(new Research(form.ResearchName));
            }
        }
 private void btnRenameKT_Click(object sender, EventArgs e)
 {
     FormAddResearch form = new FormAddResearch();
     form.Name = "Переименовать КТ";
     DialogResult res = form.ShowDialog();
     if (res == System.Windows.Forms.DialogResult.OK)
     {
         ((CheckPoint)currentResearch.CheckPoints[lstAcousticList.SelectedIndex]).Name = form.ResearchName;
         lstAcousticList.Items[lstAcousticList.SelectedIndex] = form.ResearchName;
     }
 }