/// <summary> /// When the user clicks the LEFT BLAST button, Primer BLAST is run and the appropriate results /// are displayed in a new view. /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void LeftSurfaceButton_Click(object sender, RoutedEventArgs e) { //shows BLAST grid //parses results from .xml file and places results in an array of Lists holding ResultSVI objects //each index in the array corresponds to a specific tb genome //BlastParser bp = new BlastParser(_genome); //List<ResultSVI>[] results = bp.blastResults; BLASTworker worker = new BLASTworker(Dispatcher.CurrentDispatcher, _leftPrimer, _genome, (results) => { this.results = results; displayLeftBlastResults(this.results); } ); worker.Start(); runningLeftBlastLabel.Visibility = Visibility.Visible; leftHighlight.CanMove = false; }
/// <summary> /// When the user clicks the RIGHT BLAST button, Primer BLAST is run and the appropriate results /// are displayed in a new view. /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void RightSurfaceButton_Click(object sender, RoutedEventArgs e) { //shows BLAST grid //runs Primer BLAST through command line and file I/O BLASTworker worker = new BLASTworker(Dispatcher.CurrentDispatcher, _rightPrimer, _genome, (results) => { this.results = results; displayRightBlastResults(this.results); } ); worker.Start(); runningRightBlastLabel.Visibility = Visibility.Visible; rightHighlight.CanMove = false; }