/// <summary> /// Generates a random question /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void OnGenerateRandomConversionClick(object sender, RoutedEventArgs e) { ResetEverything(); var randomConversion = convertUtil.GenerateRandomConversion(); conversionCombobox.SelectedIndex = randomConversion.Item1; value.Text = randomConversion.Item2; }