/// <summary> /// This method listens to the key down on the ListViewItem and if thekey pressed is the "Enter Key" /// , then it displays the Pairwise sequence alignment report. /// </summary> /// <param name="sender">ListView instance.</param> /// <param name="e">Event Data.</param> private void OnListViewKeyUp(object sender, KeyEventArgs e) { if (e.Key == Key.Enter) { DependencyObject dep = (DependencyObject)e.OriginalSource; if (dep != null) { BlastResultCollator item = this.lstSingleLineReport.ItemContainerGenerator.ItemFromContainer(dep) as BlastResultCollator; if (item != null) { BlastPane.RenderPairwiseSequenceAlignment(item); } } } }
/// <summary> /// This method listens to the double click on the List view /// and if the a ListView item has been clicked, then it displays /// the Pairwise sequence alignment report. /// </summary> /// <param name="sender">ListView instance</param> /// <param name="e"> Event data.</param> private void OnListViewDoubleClick(object sender, MouseButtonEventArgs e) { DependencyObject dep = (DependencyObject)e.OriginalSource; while ((dep != null) && !(dep is ListViewItem)) { dep = VisualTreeHelper.GetParent(dep); } if (dep == null) { return; } BlastResultCollator item = this.lstSingleLineReport.ItemContainerGenerator.ItemFromContainer(dep) as BlastResultCollator; if (item != null) { BlastPane.RenderPairwiseSequenceAlignment(item); } }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.sequenceViewExpander = ((System.Windows.Controls.Expander)(target)); return; case 2: this.AssemblyGrid = ((System.Windows.Controls.Grid)(target)); return; case 3: this.sequenceViewer = ((System.Windows.Controls.Grid)(target)); return; case 4: this.customSequenceView = ((SequenceAssembler.ConsensusCustomView)(target)); return; case 5: this.assemblePane = ((System.Windows.Controls.DockPanel)(target)); return; case 6: this.btnAssemble = ((System.Windows.Controls.Button)(target)); return; case 7: this.btnAlign = ((System.Windows.Controls.Button)(target)); return; case 8: this.sequenceViewZoomPanel = ((System.Windows.Controls.StackPanel)(target)); return; case 9: this.sequenceViewZoomSlider = ((System.Windows.Controls.Slider)(target)); #line 267 "..\..\AssemblerPane.xaml" this.sequenceViewZoomSlider.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.OnSequenceViewZoomSliderValueChanged); #line default #line hidden return; case 10: this.assembleProgress = ((System.Windows.Controls.StackPanel)(target)); return; case 11: this.assemblyInProgressText = ((System.Windows.Controls.TextBlock)(target)); return; case 12: this.btnCancelAssembly = ((System.Windows.Controls.Button)(target)); return; case 13: this.sequenceTree = ((System.Windows.Controls.TreeView)(target)); return; case 14: this.consensusViewExpander = ((System.Windows.Controls.Expander)(target)); return; case 15: this.assemblyResultTab = ((System.Windows.Controls.TabControl)(target)); return; case 16: this.stkAssemblyReport = ((System.Windows.Controls.StackPanel)(target)); return; case 17: this.txtInputSequence = ((System.Windows.Controls.TextBlock)(target)); return; case 18: this.txtAlignmentAlgorithm = ((System.Windows.Controls.TextBlock)(target)); return; case 19: this.txtTotalTime = ((System.Windows.Controls.TextBlock)(target)); return; case 20: this.txtStartTime = ((System.Windows.Controls.TextBlock)(target)); return; case 21: this.txtEndTime = ((System.Windows.Controls.TextBlock)(target)); return; case 22: this.numberOfContigsLabel = ((System.Windows.Controls.TextBlock)(target)); return; case 23: this.txtContigs = ((System.Windows.Controls.TextBlock)(target)); return; case 24: this.txtUnAssembledCountGrid = ((System.Windows.Controls.Grid)(target)); return; case 25: this.txtUnAssembled = ((System.Windows.Controls.TextBlock)(target)); return; case 26: this.txtLengthGrid = ((System.Windows.Controls.Grid)(target)); return; case 27: this.txtLength = ((System.Windows.Controls.TextBlock)(target)); return; case 28: this.customViewTab = ((System.Windows.Controls.TabItem)(target)); return; case 29: this.consensusCustomView = ((SequenceAssembler.ConsensusCustomView)(target)); return; case 30: this.stkWebProgressBar = ((System.Windows.Controls.StackPanel)(target)); return; case 31: this.cancelServiceBtn = ((System.Windows.Controls.Button)(target)); return; case 32: this.stkWebService = ((System.Windows.Controls.DockPanel)(target)); return; case 33: this.cmbWebServices = ((System.Windows.Controls.ComboBox)(target)); return; case 34: this.executeServiceBtn = ((System.Windows.Controls.Button)(target)); return; case 35: this.consensusViewZoomPanel = ((System.Windows.Controls.StackPanel)(target)); return; case 36: this.consensusViewZoomSlider = ((System.Windows.Controls.Slider)(target)); #line 449 "..\..\AssemblerPane.xaml" this.consensusViewZoomSlider.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.OnConsensusViewZoomSliderValueChanged); #line default #line hidden return; case 37: this.consensusTreeViewCaption = ((System.Windows.Controls.TextBlock)(target)); return; case 38: this.consensusTree = ((System.Windows.Controls.TreeView)(target)); return; case 39: this.treeViewConsensus = ((System.Windows.Controls.TreeViewItem)(target)); return; case 40: this.blastResultsExpander = ((System.Windows.Controls.Expander)(target)); return; case 41: this.webServicePresenter = ((SequenceAssembler.BlastPane)(target)); return; } this._contentLoaded = true; }