private void ShowCreateResearchDialog(ResearchType rt)
        {
            CreateEditResearchWindow d = new CreateEditResearchWindow(DialogType.Create, rt);

            d.ShowDialog(this);
            if (d.DialogResult == DialogResult.OK)
            {
                AddResearchToTable(d.ResultResearchId);
            }
        }
        private void cloneResearch_Click(object sender, EventArgs e)
        {
            Debug.Assert(researchesTable.SelectedRows.Count == 1);
            Guid id = GetSelectedResearchId();
            CreateEditResearchWindow cloneWindow = new CreateEditResearchWindow(DialogType.Clone,
                                                                                SessionManager.GetResearchType(id), id);

            cloneWindow.ShowDialog(this);
            if (cloneWindow.DialogResult == DialogResult.OK)
            {
                AddResearchToTable(cloneWindow.ResultResearchId);
            }
        }
        private void editResearch_Click(object sender, EventArgs e)
        {
            Debug.Assert(researchesTable.SelectedRows.Count == 1);
            Guid id = GetSelectedResearchId();
            CreateEditResearchWindow editWindow = new CreateEditResearchWindow(DialogType.Edit,
                                                                               SessionManager.GetResearchType(id), id);

            editWindow.ShowDialog(this);
            if (editWindow.DialogResult == DialogResult.OK)
            {
                UpdateSelectedResearchInTable();
            }
        }
 private void ShowCreateResearchDialog(ResearchType rt)
 {
     CreateEditResearchWindow d = new CreateEditResearchWindow(DialogType.Create, rt);
     d.ShowDialog(this);
     if (d.DialogResult == DialogResult.OK)
         AddResearchToTable(d.ResultResearchId);
 }
 private void editResearch_Click(object sender, EventArgs e)
 {
     Debug.Assert(researchesTable.SelectedRows.Count == 1);
     Guid id = GetSelectedResearchId();
     CreateEditResearchWindow editWindow = new CreateEditResearchWindow(DialogType.Edit,
         SessionManager.GetResearchType(id), id);
     editWindow.ShowDialog(this);
     if (editWindow.DialogResult == DialogResult.OK)
         UpdateSelectedResearchInTable();
 }
 private void cloneResearch_Click(object sender, EventArgs e)
 {
     Debug.Assert(researchesTable.SelectedRows.Count == 1);
     Guid id = GetSelectedResearchId();
     CreateEditResearchWindow cloneWindow = new CreateEditResearchWindow(DialogType.Clone,
         SessionManager.GetResearchType(id), id);
     cloneWindow.ShowDialog(this);
     if (cloneWindow.DialogResult == DialogResult.OK)
         AddResearchToTable(cloneWindow.ResultResearchId);
 }