Guest User

Untitled

a guest
Nov 24th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.72 KB | None | 0 0
  1. //BUG// ---------------- BUG REPORT - LOOK AT THIS CASCADED IF/ELSE BLOCK ----------------
  2.  
  3. if (heightByCoordinate_RButton.IsChecked == true)     //BUG// ............ CONDITION IS TRUE
  4.     inputParams.heightType = HeightType.WaterDepth;   //BUG// ............ call of this line (correct)
  5. else
  6.     if (overGround_RButton.IsChecked == true)
  7.         inputParams.heightType = HeightType.HeightOverGround_byCoordinate;
  8.     else
  9.         if (overGroundStatic_RButton.IsChecked == true)
  10.             inputParams.heightType = HeightType.HeightOverGround_const;
  11.         else
  12.             throw new Exception("This line call is not allowed after TRUE conditions");  //BUG// .... CALL OF THIS "ELSE" LINE (bad, because it shouldn't be touched)
Add Comment
Please, Sign In to add comment