// ReSharper disable once UnusedMember.Local private void GenerateSequenceGraph() { sequenceGraph = GraphXSequenceGraph.Create( new AminoAcidSet(SearchModifications, MaxDynamicModifications), string.Empty, SearchModifications.ToList()); if (sequenceGraph == null) { return; } var graph = sequenceGraph.DataGraph; Graph = graph; SequenceGraphArea.LogicCore.Graph = graph; SequenceGraphArea.ShowAllEdgesLabels(); SequenceGraphArea.GenerateGraph(true); }
/// <summary> /// Event handler that is triggered when the sequence graph has loaded. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The event arguments.</param> private void SequenceGraphArea_Loaded(object sender, RoutedEventArgs e) { SequenceGraphArea.ShowAllEdgesLabels(); SequenceGraphArea.GenerateGraph(true); }