Advertisement
Guest User

Untitled

a guest
Sep 16th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. try
  2. {
  3. Convert.ToInt32(sp1Entry.Text);
  4. Convert.ToInt32(sp2Entry.Text);
  5. Convert.ToInt32(sp3Entry.Text);
  6. Convert.ToInt32(sp4Entry.Text);
  7.  
  8. if (Convert.ToInt32(sp1Entry.Text) > myGame.sp1B || Convert.ToInt32(sp2Entry.Text) > myGame.sp2B ||
  9. Convert.ToInt32(sp3Entry.Text) > myGame.sp3B || Convert.ToInt32(sp4Entry.Text) > myGame.sp4B)
  10. {
  11. throw new Exception();
  12. }
  13. }
  14. catch (Exception)
  15. {
  16. MessageBox.Show("Invalid Entry!");
  17. return;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement