Esempio n. 1
0
        private void SetUpTestLibraries()
        {
            PeptideSettingsUI = ShowDialog<PeptideSettingsUI>(SkylineWindow.ShowPeptideSettingsUI);

            Assert.IsNotNull(PeptideSettingsUI);

            var editListUI = ShowDialog<EditListDlg<SettingsListBase<LibrarySpec>, LibrarySpec>>(PeptideSettingsUI.EditLibraryList);
            int numLibs = _testLibs.Length;
            for (int i = 0; i < numLibs; i++)
            {
                AddLibrary(editListUI, _testLibs[i]);
            }
            RunUI(editListUI.OkDialog);
            WaitForClosedForm(editListUI);

            // Make sure the libraries actually show up in the peptide settings dialog before continuing.
            WaitForConditionUI(() => _testLibs.Length == PeptideSettingsUI.AvailableLibraries.Count());

            RunUI(() => Assert.IsFalse(PeptideSettingsUI.IsSettingsChanged));

            RunUI(() => PeptideSettingsUI.OkDialog());
            WaitForClosedForm(PeptideSettingsUI);
        }
 private static void SetHeavyLabelNames(PeptideSettingsUI peptideSettingsUI, string[] heavyLabelNames)
 {
     var editLabelTypeListDlg = ShowEditLabelTypeListDlg(peptideSettingsUI);
     RunUI(() =>
     {
         editLabelTypeListDlg.LabelTypeText = string.Join("\n", heavyLabelNames);
         editLabelTypeListDlg.OkDialog();
     });
     WaitForClosedForm(editLabelTypeListDlg);
 }
 private static EditLabelTypeListDlg ShowEditLabelTypeListDlg(PeptideSettingsUI peptideSettingsUI)
 {
     return ShowDialog<EditLabelTypeListDlg>(peptideSettingsUI.EditLabelTypeList);
 }
Esempio n. 4
0
 private void EnsurePeptideSettings()
 {
     PeptideSettingsUI = FindOpenForm<PeptideSettingsUI>() ??
                         ShowDialog<PeptideSettingsUI>(SkylineWindow.ShowPeptideSettingsUI);
 }