コード例 #1
0
        public Form2()
        {
            InitializeComponent();
            label2.Text = "Form a " + FormData.GAME + " Team";

            if (FormData.GAME == "Rocket League")
            {
                this.BackgroundImage = Properties.Resources.rocket_league_sport;
                listBox1.Items.Add(RLRanks.Bronze.ToString());
                listBox1.Items.Add(RLRanks.Silver.ToString());
                listBox1.Items.Add(RLRanks.Gold.ToString());
                listBox1.Items.Add(RLRanks.Platinum.ToString());
                listBox1.Items.Add(RLRanks.Diamond.ToString());
                listBox1.Items.Add(RLRanks.Champion.ToString());
                listBox1.Items.Add(RLRanks.GC.ToString());
                listBox1.Items.Add(RLRanks.SSL.ToString());
            }
            else if (FormData.GAME == "CSGO")
            {
                this.BackgroundImage = Properties.Resources.cs_splash;
                listBox1.Items.Add(CSRanks.Silver.ToString());
                listBox1.Items.Add(CSRanks.GoldNova.ToString());
                listBox1.Items.Add(CSRanks.MasterGuardian.ToString());
                listBox1.Items.Add(CSRanks.DMG.ToString());
                listBox1.Items.Add(CSRanks.LEM.ToString());
                listBox1.Items.Add(CSRanks.SMFC.ToString());
                listBox1.Items.Add(CSRanks.GlobalElite.ToString());
            }
            else if (FormData.GAME == "League Of Legends")
            {
                this.BackgroundImage = Properties.Resources.league_splash;
                listBox1.Items.Add(LOLRanks.Iron.ToString());
                listBox1.Items.Add(LOLRanks.Bronze.ToString());
                listBox1.Items.Add(LOLRanks.Silver.ToString());
                listBox1.Items.Add(LOLRanks.Gold.ToString());
                listBox1.Items.Add(LOLRanks.Platinum.ToString());
                listBox1.Items.Add(LOLRanks.Diamond.ToString());
                listBox1.Items.Add(LOLRanks.Master.ToString());
                listBox1.Items.Add(LOLRanks.Grandmaster.ToString());
                listBox1.Items.Add(LOLRanks.Challenger.ToString());
            }
            else if (FormData.GAME == "Dota 2")
            {
                this.BackgroundImage = Properties.Resources.dota2_splash;
                listBox1.Items.Add(DotaRanks.Herald.ToString());
                listBox1.Items.Add(DotaRanks.Guardian.ToString());
                listBox1.Items.Add(DotaRanks.Crusader.ToString());
                listBox1.Items.Add(DotaRanks.Archon.ToString());
                listBox1.Items.Add(DotaRanks.Legend.ToString());
                listBox1.Items.Add(DotaRanks.Ancient.ToString());
                listBox1.Items.Add(DotaRanks.Divine.ToString());
            }
            else if (FormData.GAME == "Valorant")
            {
                this.BackgroundImage = Properties.Resources.val_splash;
                listBox1.Items.Add(ValRanks.Iron.ToString());
                listBox1.Items.Add(ValRanks.Bronze.ToString());
                listBox1.Items.Add(ValRanks.Silver.ToString());
                listBox1.Items.Add(ValRanks.Gold.ToString());
                listBox1.Items.Add(ValRanks.Platinum.ToString());
                listBox1.Items.Add(ValRanks.Diamond.ToString());
                listBox1.Items.Add(ValRanks.Immortal.ToString());
                listBox1.Items.Add(ValRanks.Radiant.ToString());
            }
            else if (FormData.GAME == "Overwatch")
            {
                this.BackgroundImage = Properties.Resources.ov_splash;
                listBox1.Items.Add(OWRanks.Bronze.ToString());
                listBox1.Items.Add(OWRanks.Silver.ToString());
                listBox1.Items.Add(OWRanks.Gold.ToString());
                listBox1.Items.Add(OWRanks.Platinum.ToString());
                listBox1.Items.Add(OWRanks.Diamond.ToString());
                listBox1.Items.Add(OWRanks.Master.ToString());
                listBox1.Items.Add(OWRanks.Grandmaster.ToString());
                listBox1.Items.Add(OWRanks.Top500.ToString());
            }
            formData = new FormData();
        }
コード例 #2
0
ファイル: Database.cs プロジェクト: jhadden25/cliques
 public static async void PostDataToDB(string game, int uID, FormData fd)
 {
     dynamic jsonObj = JsonConvert.SerializeObject(fd);
     await firebase.Child("Gaming").Child(game).Child(uID.ToString()).PutAsync(jsonObj);
 }