Advertisement
Guest User

Untitled

a guest
Mar 30th, 2015
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. if (combobox1.SelectedValue.ToString() == "Regular")
  2. {
  3. x = 1.25;
  4. }
  5. else if (combobox1.SelectedValue.ToString() == "Double")
  6. {
  7. x = 2;
  8. }
  9. // Same Codes for ComboBox 2~5
  10.  
  11. if (txtTime.Text.Lenght > 0)
  12. {
  13. // Item Letter "C"
  14. // value of "x" is equal to the above item
  15. txtAmount.Text = (double.Parse(txtTime.Text) * x).ToString();
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement