Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void stockCheck()
- {
- JObject jobject = JObject.Parse(new WebClient().DownloadString("https://api.liftycommunity.com/stock"));
- this.SpotifyStock.Text = (string)jobject["Spotify"];
- this.FortniteStock.Text = (string)jobject["Fortnite"];
- this.PornhubStock.Text = (string)jobject["Pornhub"];
- this.NordStock.Text = (string)jobject["NordVPN"];
- this.UplayStock.Text = (string)jobject["UPlay"];
- this.OriginStock.Text = (string)jobject["Origin"];
- this.NetflixStock.Text = (string)jobject["Netflix"];
- this.HuluStock.Text = (string)jobject["Hulu"];
- this.MinecraftStock.Text = (string)jobject["Minecraft"];
- this.VyprStock.Text = (string)jobject["VyprVPN"];
- this.ZenmateStock.Text = (string)jobject["Zenmate"];
- this.WishStock.Text = (string)jobject["Wish"];
- this.InstagramStock.Text = (string)jobject["Instagram"];
- this.WWEStock.Text = (string)jobject["WWE"];
- this.GrammarlyStock.Text = (string)jobject["Grammarly"];
- this.MegaStock.Text = (string)jobject["MEGA"];
- this.CrunchyrollStock.Text = (string)jobject["Crunchyroll"];
- this.HMAStock.Text = (string)jobject["HMA"];
- this.CyberStock.Text = (string)jobject["Cyber"];
- this.YahooStock.Text = (string)jobject["Yahoo"];
- this.SteamStock.Text = (string)jobject["Steam"];
- if (this.SteamStock.Text == "0")
- {
- this.SteamStock.ForeColor = Color.Red;
- }
- else
- {
- this.SteamStock.ForeColor = Color.White;
- }
- if (this.PornhubStock.Text == "0")
- {
- this.PornhubStock.ForeColor = Color.Red;
- }
- else
- {
- this.PornhubStock.ForeColor = Color.White;
- }
- if (this.VyprStock.Text == "0")
- {
- this.VyprStock.ForeColor = Color.Red;
- }
- else
- {
- this.VyprStock.ForeColor = Color.White;
- }
- if (this.ZenmateStock.Text == "0")
- {
- this.ZenmateStock.ForeColor = Color.Red;
- }
- else
- {
- this.ZenmateStock.ForeColor = Color.White;
- }
- if (this.SpotifyStock.Text == "0")
- {
- this.SpotifyStock.ForeColor = Color.Red;
- }
- else
- {
- this.SpotifyStock.ForeColor = Color.White;
- }
- if (this.NetflixStock.Text == "0")
- {
- this.NetflixStock.ForeColor = Color.Red;
- }
- else
- {
- this.NetflixStock.ForeColor = Color.White;
- }
- if (this.FortniteStock.Text == "0")
- {
- this.FortniteStock.ForeColor = Color.Red;
- }
- else
- {
- this.FortniteStock.ForeColor = Color.White;
- }
- if (this.NordStock.Text == "0")
- {
- this.NordStock.ForeColor = Color.Red;
- }
- else
- {
- this.NordStock.ForeColor = Color.White;
- }
- if (this.InstagramStock.Text == "0")
- {
- this.InstagramStock.ForeColor = Color.Red;
- }
- else
- {
- this.InstagramStock.ForeColor = Color.White;
- }
- if (this.OriginStock.Text == "0")
- {
- this.OriginStock.ForeColor = Color.Red;
- }
- else
- {
- this.OriginStock.ForeColor = Color.White;
- }
- if (this.WishStock.Text == "0")
- {
- this.WishStock.ForeColor = Color.Red;
- }
- else
- {
- this.WishStock.ForeColor = Color.White;
- }
- if (this.WWEStock.Text == "0")
- {
- this.WWEStock.ForeColor = Color.Red;
- }
- else
- {
- this.WWEStock.ForeColor = Color.White;
- }
- if (this.GrammarlyStock.Text == "0")
- {
- this.GrammarlyStock.ForeColor = Color.Red;
- }
- else
- {
- this.GrammarlyStock.ForeColor = Color.White;
- }
- if (this.YahooStock.Text == "0")
- {
- this.YahooStock.ForeColor = Color.Red;
- }
- else
- {
- this.YahooStock.ForeColor = Color.White;
- }
- if (this.MegaStock.Text == "0")
- {
- this.MegaStock.ForeColor = Color.Red;
- }
- else
- {
- this.MegaStock.ForeColor = Color.White;
- }
- if (this.SteamStock.Text == "0")
- {
- this.SteamStock.ForeColor = Color.Red;
- }
- else
- {
- this.SteamStock.ForeColor = Color.White;
- }
- if (this.UplayStock.Text == "0")
- {
- this.UplayStock.ForeColor = Color.Red;
- }
- else
- {
- this.UplayStock.ForeColor = Color.White;
- }
- if (this.HuluStock.Text == "0")
- {
- this.HuluStock.ForeColor = Color.Red;
- }
- else
- {
- this.HuluStock.ForeColor = Color.White;
- }
- if (this.MinecraftStock.Text == "0")
- {
- this.MinecraftStock.ForeColor = Color.Red;
- }
- else
- {
- this.MinecraftStock.ForeColor = Color.White;
- }
- if (this.CrunchyrollStock.Text == "0")
- {
- this.CrunchyrollStock.ForeColor = Color.Red;
- }
- else
- {
- this.CrunchyrollStock.ForeColor = Color.White;
- }
- if (this.HMAStock.Text == "0")
- {
- this.HMAStock.ForeColor = Color.Red;
- }
- else
- {
- this.HMAStock.ForeColor = Color.White;
- }
- if (this.CyberStock.Text == "0")
- {
- this.CyberStock.ForeColor = Color.Red;
- return;
- }
- this.CyberStock.ForeColor = Color.White;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement