public void ShowPeptideAnalyses() { var peptideComparisonsForm = Program.FindOpenForm <PeptideAnalysesForm>(); if (peptideComparisonsForm != null) { RestoreAndActivate(peptideComparisonsForm); return; } peptideComparisonsForm = new PeptideAnalysesForm(Workspace); peptideComparisonsForm.Show(dockPanel, DockState.Document); }
private void BtnAnalyzePeptidesOnClick(object sender, EventArgs e) { var oldCount = Workspace.PeptideAnalyses.Count; new AnalyzePeptidesForm(Workspace).Show(TopLevelControl); if (oldCount == Workspace.PeptideAnalyses.Count) { return; } var peptideAnalysesForm = Program.FindOpenForm <PeptideAnalysesForm>(); if (peptideAnalysesForm != null) { peptideAnalysesForm.Activate(); return; } peptideAnalysesForm = new PeptideAnalysesForm(Workspace); peptideAnalysesForm.Show(DockPanel, DockState.Document); }
public void ShowPeptideAnalyses() { var peptideComparisonsForm = Program.FindOpenForm<PeptideAnalysesForm>(); if (peptideComparisonsForm != null) { RestoreAndActivate(peptideComparisonsForm); return; } peptideComparisonsForm = new PeptideAnalysesForm(Workspace); peptideComparisonsForm.Show(dockPanel, DockState.Document); }
public PeptideAnalysisDeleteHandler(PeptideAnalysesForm form) { _form = form; }
private void BtnAnalyzePeptidesOnClick(object sender, EventArgs e) { var oldCount = Workspace.PeptideAnalyses.Count; new AnalyzePeptidesForm(Workspace).Show(TopLevelControl); if (oldCount == Workspace.PeptideAnalyses.Count) { return; } var peptideAnalysesForm = Program.FindOpenForm<PeptideAnalysesForm>(); if (peptideAnalysesForm != null) { peptideAnalysesForm.Activate(); return; } peptideAnalysesForm = new PeptideAnalysesForm(Workspace); peptideAnalysesForm.Show(DockPanel, DockState.Document); }