Advertisement
Guest User

Untitled

a guest
Feb 21st, 2020
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. public int ConvertMusicType(int index)
  2. {
  3. switch (index)
  4. {
  5. case 0: return 800;
  6. case 1: return 1100;
  7. case 2: return 1600;
  8. case 3: return 1900;
  9. default: return 0;
  10. }
  11. }
  12.  
  13. public double ConvertArtist(int index)
  14. {
  15. switch (index)
  16. {
  17. case 0: return 1.2;
  18. case 1: return 1.3;
  19. default: return 0;
  20. }
  21. }
  22.  
  23. public double ConvertSpecialArtist(bool index)
  24. {
  25. switch (index)
  26. {
  27. case true: return 1.7;
  28. case false: return 1;
  29. default: return 0;
  30. }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement