Пример #1
0
        protected void ChangeSelectedIndex(int iResult)
        {
            if (iResult < 0)
            {
                return;
            }
            var document = GraphSummary.DocumentUIContainer.DocumentUI;

            if (!document.Settings.HasResults || iResult >= document.Settings.MeasuredResults.Chromatograms.Count)
            {
                return;
            }
            GraphSummary.StateProvider.SelectedResultsIndex = iResult;
            GraphSummary.Focus();
        }
        protected override void ChangeSelection(int selectedIndex, IdentityPath identityPath)
        {
            if (IsExpectedVisible)
            {
                if (selectedIndex < 0)
                    return;
                if (selectedIndex == 0)
                {
                    // Show MS/MS Spectrum tab and keep focus on the graph
                    GraphSummary.ActiveLibrary = true;
                    GraphSummary.StateProvider.ActivateSpectrum();
                    GraphSummary.Focus();
                    return;
                }
                GraphSummary.ActiveLibrary = false;
                selectedIndex--;
            }

            base.ChangeSelection(selectedIndex, identityPath);
        }