/// <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); }