code_junkie

Configurations and Program features in Visual Studio/C# Windows App

Nov 12th, 2011
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. #ifdef PROVERSION
  2. part1.disable();
  3. part2.disable();
  4. #endif
  5.  
  6. enum LicenseLevel {
  7. Eval = 0,
  8. Pro = 1,
  9. Enterprise = 2
  10. }
  11.  
  12. // later...
  13.  
  14. for(i=0; i < widgets.Count; i++) {
  15. if (i == 100 && CurrentUser.LicenseLevel < LicenseLevel.Enterprise)
  16. break;
  17. // do stuff
  18. }
Add Comment
Please, Sign In to add comment