Advertisement
Guest User

isik

a guest
Dec 12th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. if (txtOneAZN.Text.Equals("")) txtOneAZN.Text = "0";
  2. if (txtFiveAZN.Text.Equals("")) txtFiveAZN.Text = "0";
  3. if (txtTenAZN.Text.Equals("")) txtTenAZN.Text = "0";
  4. if (txtTwentyAZN.Text.Equals("")) txtTwentyAZN.Text = "0";
  5. if (txtFiftyAZN.Text.Equals("")) txtFiftyAZN.Text = "0";
  6. if (txtHundredAZN.Text.Equals("")) txtHundredAZN.Text = "0";
  7.  
  8. int money = Int32.Parse(txtOneAZN.Text) + Int32.Parse(txtFiveAZN.Text)*5 + Int32.Parse(txtTenAZN.Text)*10 + Int32.Parse(txtTwentyAZN.Text)*20 + Int32.Parse(txtFiftyAZN.Text)*50 + Int32.Parse(txtHundredAZN.Text)*100;
  9.  
  10. txtCurrentAmount.Text = money + "";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement