Advertisement
Dgame321

Untitled

Dec 6th, 2019
10,386
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.76 KB | None | 0 0
  1. private void stockCheck()
  2. {
  3. JObject jobject = JObject.Parse(new WebClient().DownloadString("https://api.liftycommunity.com/stock"));
  4. this.SpotifyStock.Text = (string)jobject["Spotify"];
  5. this.FortniteStock.Text = (string)jobject["Fortnite"];
  6. this.PornhubStock.Text = (string)jobject["Pornhub"];
  7. this.NordStock.Text = (string)jobject["NordVPN"];
  8. this.UplayStock.Text = (string)jobject["UPlay"];
  9. this.OriginStock.Text = (string)jobject["Origin"];
  10. this.NetflixStock.Text = (string)jobject["Netflix"];
  11. this.HuluStock.Text = (string)jobject["Hulu"];
  12. this.MinecraftStock.Text = (string)jobject["Minecraft"];
  13. this.VyprStock.Text = (string)jobject["VyprVPN"];
  14. this.ZenmateStock.Text = (string)jobject["Zenmate"];
  15. this.WishStock.Text = (string)jobject["Wish"];
  16. this.InstagramStock.Text = (string)jobject["Instagram"];
  17. this.WWEStock.Text = (string)jobject["WWE"];
  18. this.GrammarlyStock.Text = (string)jobject["Grammarly"];
  19. this.MegaStock.Text = (string)jobject["MEGA"];
  20. this.CrunchyrollStock.Text = (string)jobject["Crunchyroll"];
  21. this.HMAStock.Text = (string)jobject["HMA"];
  22. this.CyberStock.Text = (string)jobject["Cyber"];
  23. this.YahooStock.Text = (string)jobject["Yahoo"];
  24. this.SteamStock.Text = (string)jobject["Steam"];
  25. if (this.SteamStock.Text == "0")
  26. {
  27. this.SteamStock.ForeColor = Color.Red;
  28. }
  29. else
  30. {
  31. this.SteamStock.ForeColor = Color.White;
  32. }
  33. if (this.PornhubStock.Text == "0")
  34. {
  35. this.PornhubStock.ForeColor = Color.Red;
  36. }
  37. else
  38. {
  39. this.PornhubStock.ForeColor = Color.White;
  40. }
  41. if (this.VyprStock.Text == "0")
  42. {
  43. this.VyprStock.ForeColor = Color.Red;
  44. }
  45. else
  46. {
  47. this.VyprStock.ForeColor = Color.White;
  48. }
  49. if (this.ZenmateStock.Text == "0")
  50. {
  51. this.ZenmateStock.ForeColor = Color.Red;
  52. }
  53. else
  54. {
  55. this.ZenmateStock.ForeColor = Color.White;
  56. }
  57. if (this.SpotifyStock.Text == "0")
  58. {
  59. this.SpotifyStock.ForeColor = Color.Red;
  60. }
  61. else
  62. {
  63. this.SpotifyStock.ForeColor = Color.White;
  64. }
  65. if (this.NetflixStock.Text == "0")
  66. {
  67. this.NetflixStock.ForeColor = Color.Red;
  68. }
  69. else
  70. {
  71. this.NetflixStock.ForeColor = Color.White;
  72. }
  73. if (this.FortniteStock.Text == "0")
  74. {
  75. this.FortniteStock.ForeColor = Color.Red;
  76. }
  77. else
  78. {
  79. this.FortniteStock.ForeColor = Color.White;
  80. }
  81. if (this.NordStock.Text == "0")
  82. {
  83. this.NordStock.ForeColor = Color.Red;
  84. }
  85. else
  86. {
  87. this.NordStock.ForeColor = Color.White;
  88. }
  89. if (this.InstagramStock.Text == "0")
  90. {
  91. this.InstagramStock.ForeColor = Color.Red;
  92. }
  93. else
  94. {
  95. this.InstagramStock.ForeColor = Color.White;
  96. }
  97. if (this.OriginStock.Text == "0")
  98. {
  99. this.OriginStock.ForeColor = Color.Red;
  100. }
  101. else
  102. {
  103. this.OriginStock.ForeColor = Color.White;
  104. }
  105. if (this.WishStock.Text == "0")
  106. {
  107. this.WishStock.ForeColor = Color.Red;
  108. }
  109. else
  110. {
  111. this.WishStock.ForeColor = Color.White;
  112. }
  113. if (this.WWEStock.Text == "0")
  114. {
  115. this.WWEStock.ForeColor = Color.Red;
  116. }
  117. else
  118. {
  119. this.WWEStock.ForeColor = Color.White;
  120. }
  121. if (this.GrammarlyStock.Text == "0")
  122. {
  123. this.GrammarlyStock.ForeColor = Color.Red;
  124. }
  125. else
  126. {
  127. this.GrammarlyStock.ForeColor = Color.White;
  128. }
  129. if (this.YahooStock.Text == "0")
  130. {
  131. this.YahooStock.ForeColor = Color.Red;
  132. }
  133. else
  134. {
  135. this.YahooStock.ForeColor = Color.White;
  136. }
  137. if (this.MegaStock.Text == "0")
  138. {
  139. this.MegaStock.ForeColor = Color.Red;
  140. }
  141. else
  142. {
  143. this.MegaStock.ForeColor = Color.White;
  144. }
  145. if (this.SteamStock.Text == "0")
  146. {
  147. this.SteamStock.ForeColor = Color.Red;
  148. }
  149. else
  150. {
  151. this.SteamStock.ForeColor = Color.White;
  152. }
  153. if (this.UplayStock.Text == "0")
  154. {
  155. this.UplayStock.ForeColor = Color.Red;
  156. }
  157. else
  158. {
  159. this.UplayStock.ForeColor = Color.White;
  160. }
  161. if (this.HuluStock.Text == "0")
  162. {
  163. this.HuluStock.ForeColor = Color.Red;
  164. }
  165. else
  166. {
  167. this.HuluStock.ForeColor = Color.White;
  168. }
  169. if (this.MinecraftStock.Text == "0")
  170. {
  171. this.MinecraftStock.ForeColor = Color.Red;
  172. }
  173. else
  174. {
  175. this.MinecraftStock.ForeColor = Color.White;
  176. }
  177. if (this.CrunchyrollStock.Text == "0")
  178. {
  179. this.CrunchyrollStock.ForeColor = Color.Red;
  180. }
  181. else
  182. {
  183. this.CrunchyrollStock.ForeColor = Color.White;
  184. }
  185. if (this.HMAStock.Text == "0")
  186. {
  187. this.HMAStock.ForeColor = Color.Red;
  188. }
  189. else
  190. {
  191. this.HMAStock.ForeColor = Color.White;
  192. }
  193. if (this.CyberStock.Text == "0")
  194. {
  195. this.CyberStock.ForeColor = Color.Red;
  196. return;
  197. }
  198. this.CyberStock.ForeColor = Color.White;
  199. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement