
I can get fare From one city to To another city and selecting One Way , AC using following code
private void button1_Click(object sender, EventArgs e)
{ if (comboBox1.SelectedIndex == 0 && comboBox2.SelectedIndex == 0 && radioButton1.Checked && radioButton3.Checked) { MessageBox.Show("Your Fare is $225");
}
}
The problem is there will many many if satements incase if there are only 5 citis in combo box. What is the best way to choose different approcach to avoid if satemens.
Sulieman AlkatibPosted May 23, 2017, 11:50 AM
Ramesh PalanivelPosted May 19, 2017, 3:37 AM
Amit BishtPosted May 19, 2017, 3:37 AM