Example #1
0
        async Task <int> ParseREV()
        {
            pgsbar.Visible = true;
            Core         rp = new Core();
            ReplayParser dr = new ReplayParser();

            dr = ReplayParser.FromJsonText(await rp.DownloadSTRING(this.SetURL));
            NickPLAYER.Text = this.SetAUTH.Replace("By ", "");
            myDESC.Text     = dr.Description;

            if (dr.isVerified == true)
            {
                NickPLAYER.Symbol = "\uf00c";
            }
            else
            {
                yPRO.Text         = "No";
                yPRO.Symbol       = "\uf00d";
                NickPLAYER.Symbol = "\uf007";
            }


            //NickPLAYER.AutoSize = true;
            if (dr.Video != "")
            {
                myVIDEO          = dr.Video;
                videoREV.Visible = true;
                isVID.Visible    = true;
                //watchVID.Enabled = true;
                //watchVID.Visible = true;
                clipVID.Visible = true;
            }
            pgsbar.Visible = false;
            return(0);
        }
        private async void ReplayView_Load(object sender, EventArgs e)
        {
            Core rd = new Core();


            int reslt = await rd.DownloadINFO(JsonFile);

            ReplayParser rp = new ReplayParser();

            rp                 = ReplayParser.FromJson(System.IO.Path.GetTempPath() + "data.json");
            GrabRECNAME        = rp.Recname;
            lbltitle.ForeColor = Color.Black;
            lbltitle.Text      = rp.Title;
            bodytext.ForeColor = Color.Black;
            bodytext.Text      = rp.Description;
            ThisREC            = rp.Recname;
            importrec.Text     = rp.Recname.Replace(".derm", ".aoe2record");
            label2.Visible     = true;
            lbltitle.Visible   = true;
            bodytext.Visible   = true;
            importrec.Visible  = true;
            expaNEL.TitleText  = "Replay sent by " + rp.UseRprem;
            pgsbar.Visible     = false;
        }
Example #3
0
 public static string ToJson(this ReplayParser self) => JsonConvert.SerializeObject(self, DeReplaysManager.Converter.Settings);