Exemplo n.º 1
0
        private void ShowCreateResearchDialog(ResearchType rt)
        {
            CreateEditResearchWindow d = new CreateEditResearchWindow(DialogType.Create, rt);

            d.ShowDialog(this);
            if (d.DialogResult == DialogResult.OK)
            {
                AddResearchToTable(d.ResultResearchId);
            }
        }
Exemplo n.º 2
0
        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);
            }
        }
Exemplo n.º 3
0
        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);
 }