✅ else statement executing regardless of whether I want it to or not, windows form app

I've created a simple windows form app to create shapes on a bitmap, I have a function that gives an error if the user inputs an invalid input. it's currently executing even if the input is valid..

I'm pretty sure it's a simple fix would just appreciate an extra pair of eyes on this one lol
Was this page helpful?
✅ else statement executing regardless of whether I want it to or not, windows form app - C#