Beispiel #1
0
        /// <summary>
        /// Select a peptide in Skyline when the user clicks on the corresponding area bar.
        /// </summary>
        private void GraphClick(object sender, ClickEventArgs e)
        {
            // Select the peptide in Skyline when the user clicks on it.
            var documentLocation =
                DocumentLocation.Parse(_selectedReplicate == "All" ? _peptideLinks[e.Index] : _replicateLinks[e.Index]); // Not L10N

            _toolClient.SetDocumentLocation(documentLocation);
        }
Beispiel #2
0
        private static void SelectLink(string row, int linkColumn)
        {
            if (string.IsNullOrEmpty(row))
            {
                _toolClient.SetDocumentLocation(null);
                return;
            }

            var report = _toolClient.GetReport("Peak Area");
            var link   = report.Cells[int.Parse(row)][linkColumn];

            _toolClient.SetDocumentLocation(DocumentLocation.Parse(link));
        }