SHARE
TWEET

Untitled

a guest Sep 16th, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.             }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top