Hi guys so am actually a novice in C# so i was working on a currency converter using WPF, the code is below after running the application i tried converting two currencies but it did not display the result please i need help with it.
private void btn_Click(object sender, RoutedEventArgs e)
{
int conver;
int i = int.Parse(amount_txt.Text);
if (Combo1.SelectedItem == "US Dollar (USD)" && Combo2.SelectedItem == "Euro (EUR)")
{
conver = i * 87;
display_txt.Content = "Converted Amount is : " + conver;
}
else if (Combo1.SelectedItem == "US Dollar (USD)" && Combo2.SelectedItem == "Pound Sterling (GPB)")
{
conver = i * 80;
display_txt.Content = "Converted Amount is : " + conver;
}
}