/// <summary> /// When the RIGHT hairpin button is pressed, the hairpin test is called and the display /// is updated accordingly. /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void HairpinRightButton_Click(object sender, RoutedEventArgs e) { alignmentTests at = new alignmentTests(_leftPrimer); double worstCase=at.hairpinRun(); if (worstCase < _leftGibbsFree) { rightHairpinResult.Content = "x"; } else rightHairpinResult.Content = "a"; }