private void ChampionMoreInfo_Load(object sender, EventArgs e)
        {
            string name           = index.Substring(26);
            string chamName       = name.Replace(".png", "");
            string chamNameselect = champresult("http://gdc3.gudi.kr:42001/champinfo", index);

            this.BackColor = Color.WhiteSmoke;
            cm             = new Commons();
            hashtable      = new Hashtable();
            hashtable.Add("size", new Size(50, 50));
            hashtable.Add("point", new Point(0, 0));
            hashtable.Add("pictureboxsizemode", PictureBoxSizeMode.Zoom);
            hashtable.Add("click", (EventHandler)Back_click);
            back        = cm.getPictureBox(hashtable, this);
            back.Image  = Properties.Resources.images;
            back.Cursor = Cursors.Hand;

            hashtable = new Hashtable();
            hashtable.Add("size", new Size(150, 150));
            hashtable.Add("point", new Point(115, 50));
            hashtable.Add("pictureboxsizemode", PictureBoxSizeMode.Zoom);
            champImage = cm.getPictureBox(hashtable, this);
            champImage.Load(index);

            hashtable = new Hashtable();
            hashtable.Add("size", new Size(300, 50));
            hashtable.Add("point", new Point(275, 150));
            hashtable.Add("color", Color.WhiteSmoke);
            hashtable.Add("name", "champName");
            hashtable.Add("text", chamNameselect);
            champName      = cm.getLabel(hashtable, this);
            champName.Font = new Font("맑은 고딕", 30, FontStyle.Bold);

            skillset          = new WebBrowser();
            skillset.Location = new Point(275, 50);
            skillset.Size     = new Size(259, 42);
            skillset.Name     = "skill";
            //skillset.TabIndex = 0;
            this.Controls.Add(skillset);

            skillset.DocumentCompleted     += skillset_DocumentCompleted;
            skillset.Visible                = false;
            skillset.ScriptErrorsSuppressed = true;
            //skillset.IsWebBrowserContextMenuEnabled = false;
            skillset.Navigate(string.Format("https://www.op.gg/champion/{0}/statistics", chamName));

            wb          = new WebBrowser();
            wb.Location = new Point(0, 215);
            wb.Size     = new Size(985, 400);
            wb.Name     = "web1";
            //wb.TabIndex = 1;
            this.Controls.Add(wb);

            wb.DocumentCompleted     += WebBrowser1_DocumentCompleted;
            wb.Visible                = false;
            wb.ScriptErrorsSuppressed = true;
            //wb.IsWebBrowserContextMenuEnabled = false;
            wb.Navigate(string.Format("https://www.op.gg/champion/{0}/statistics", chamName));
        }
示例#2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            //LAP start
            this.Size            = new Size(1000, 800);
            this.FormBorderStyle = FormBorderStyle.FixedSingle;
            this.Text            = "LAP";

            Commons cm = new Commons();

            hashtable = new Hashtable();
            hashtable.Add("size", new Size(100, 100));
            hashtable.Add("point", new Point(40, 20));
            hashtable.Add("pictureboxsizemode", PictureBoxSizeMode.Zoom);
            logo       = cm.getPictureBox(hashtable, this);
            logo.Image = Properties.Resources.LAP_logo;

            hashtable = new Hashtable();
            hashtable.Add("size", new Size(990, 770));
            hashtable.Add("point", new Point(0, 0));
            hashtable.Add("color", Color.Black);
            hashtable.Add("name", "BackgroundPN");
            pn = cm.getPanel2(hashtable, this);

            hashtable = new Hashtable();
            hashtable.Add("width", "500");
            hashtable.Add("point", new Point(245, 70));
            hashtable.Add("color", Color.White);
            hashtable.Add("name", "search");
            hashtable.Add("enabled", true);
            tb             = cm.getTextBox(hashtable, pn);
            tb.Font        = new Font("맑은 고딕", 20, FontStyle.Bold);
            tb.BorderStyle = BorderStyle.None;

            hashtable = new Hashtable();
            hashtable.Add("size", new Size(100, 38));
            hashtable.Add("point", new Point(750, 70));
            hashtable.Add("color", Color.Gray);
            hashtable.Add("name", "searchbt");
            hashtable.Add("text", "검색");
            hashtable.Add("click", (EventHandler)btn_click);
            searchBT           = cm.getButton(hashtable, pn);
            searchBT.FlatStyle = FlatStyle.Flat;

            hashtable = new Hashtable();
            hashtable.Add("size", new Size(990, 700));
            hashtable.Add("point", new Point(0, 150));
            hashtable.Add("color", Color.Black);
            hashtable.Add("name", "ListPN");
            championList = cm.getPanel(hashtable, pn);

            ci                 = new ChampionINFO(this);
            ci.WindowState     = FormWindowState.Maximized;
            ci.FormBorderStyle = FormBorderStyle.None;
            ci.MdiParent       = this;
            ci.Dock            = DockStyle.Fill;
            championList.Controls.Add(ci);
            ci.Show();
        }
示例#3
0
        private void RotationChamp()
        {
            int margin = 0;

            cm = new Commons();
            for (int i = 0; i < 14; i++)
            {
                hashtable = new Hashtable();
                hashtable.Add("size", new Size(50, 50));
                hashtable.Add("point", new Point(18 + margin, 40));
                hashtable.Add("pictureboxsizemode", PictureBoxSizeMode.Zoom);
                hashtable.Add("click", (EventHandler)pic_click);
                pc1        = cm.getPictureBox(hashtable, rotationBack);
                pc1.Cursor = Cursors.Hand;
                Post("http://gdc3.gudi.kr:42001/select_img", pc1, i);
                margin += 69;
            }
        }
示例#4
0
        private void Loglist(string gameNo, int i)
        {
            matchlog = string.Format("https://kr.api.riotgames.com/lol/match/v4/matches/{0}?api_key={1}", gameNo, wal.myapikey());
            //matchlog = string.Format("https://kr.api.riotgames.com/lol/match/v4/matches/{0}?api_key={1}", gameID_PULL(matchlist, i), wal.myapikey());
            myitem_spell(matchlog, gameinfofuc(matchlog));
            item_select(matchlog, gameinfofuc(matchlog));
            string kdainfo = itemtable["kills"].ToString() + "/" + itemtable["deaths"].ToString() + "/" + itemtable["assists"].ToString();

            hashtable = new Hashtable();
            hashtable.Add("size", new Size(750, 160));
            hashtable.Add("point", new Point(115, 5 + (i * 170)));
            if (itemtable["win"].ToString() == "True")
            {
                hashtable.Add("color", Color.FromArgb(163, 207, 236));
            }
            else if (itemtable["win"].ToString() == "False")
            {
                hashtable.Add("color", Color.FromArgb(226, 182, 176));
            }
            hashtable.Add("name", "LOG");
            LogPn = cm.getPanel(hashtable, summonerLog);

            hashtable = new Hashtable();
            hashtable.Add("size", new Size(40, 20));
            hashtable.Add("point", new Point(5, 60));
            hashtable.Add("name", "WinLoss");
            if (itemtable["win"].ToString() == "True")
            {
                hashtable.Add("color", Color.FromArgb(163, 207, 236));
            }
            else if (itemtable["win"].ToString() == "False")
            {
                hashtable.Add("color", Color.FromArgb(226, 182, 176));
            }
            if (itemtable["win"].ToString() == "True")
            {
                hashtable.Add("text", "승리");
            }
            else if (itemtable["win"].ToString() == "False")
            {
                hashtable.Add("text", "패배");
            }
            WinLoss      = cm.getLabel(hashtable, LogPn);
            WinLoss.Font = new Font("맑은 고딕", 10, FontStyle.Bold);

            hashtable = new Hashtable();
            hashtable.Add("size", new Size(60, 60));
            hashtable.Add("point", new Point(50, 40));
            hashtable.Add("pictureboxsizemode", PictureBoxSizeMode.Zoom);
            pc1           = cm.getPictureBox(hashtable, LogPn);
            pc1.BackColor = Color.Black;
            pc1.Load(Post2("http://gdc3.gudi.kr:42001/champ_image", myitem));

            hashtable = new Hashtable();
            hashtable.Add("size", new Size(25, 25));
            hashtable.Add("point", new Point(115, 40));
            hashtable.Add("pictureboxsizemode", PictureBoxSizeMode.Zoom);
            pc2           = cm.getPictureBox(hashtable, LogPn);
            pc2.BackColor = Color.Black;
            pc2.Load(Post2("http://gdc3.gudi.kr:42001/spell_image", myitem));

            hashtable = new Hashtable();
            hashtable.Add("size", new Size(25, 25));
            hashtable.Add("point", new Point(115, 75));
            hashtable.Add("pictureboxsizemode", PictureBoxSizeMode.Zoom);
            pc3           = cm.getPictureBox(hashtable, LogPn);
            pc3.BackColor = Color.Black;
            pc3.Load(Post2("http://gdc3.gudi.kr:42001/spell_image2", myitem));

            hashtable = new Hashtable();
            hashtable.Add("size", new Size(120, 25));
            hashtable.Add("point", new Point(155, 60));
            if (itemtable["win"].ToString() == "True")
            {
                hashtable.Add("color", Color.FromArgb(163, 207, 236));
            }
            else if (itemtable["win"].ToString() == "False")
            {
                hashtable.Add("color", Color.FromArgb(226, 182, 176));
            }
            hashtable.Add("name", "champName");
            hashtable.Add("text", kdainfo);
            KDA      = cm.getLabel(hashtable, LogPn);
            KDA.Font = new Font("맑은 고딕", 15, FontStyle.Bold);

            // 아이템리스트
            for (int j = 0; j < 7; j++)
            {
                hashtable = new Hashtable();
                hashtable.Add("size", new Size(30, 30));
                hashtable.Add("point", new Point(290 + (32 * j), 58));
                hashtable.Add("pictureboxsizemode", PictureBoxSizeMode.Zoom);
                pc4           = cm.getPictureBox(hashtable, LogPn);
                pc4.BackColor = Color.Black;
                pc4.Load(itemPost("http://gdc3.gudi.kr:42001/item_img", itemtable, j));
            }
            summonerlist(matchlog);

            //우리팀 상대팀 리스트
            for (int k = 0; k < 2; k++)
            {
                for (int t = 0; t < 5; t++)
                {
                    hashtable = new Hashtable();
                    hashtable.Add("size", new Size(25, 25));
                    hashtable.Add("point", new Point(530 + (k * 171), 5 + (t * 30)));
                    hashtable.Add("pictureboxsizemode", PictureBoxSizeMode.Zoom);
                    pc5           = cm.getPictureBox(hashtable, LogPn);
                    pc5.BackColor = Color.Black;
                    if (k == 1)
                    {
                        pc5.Load(Post3("http://gdc3.gudi.kr:42001/champ_list", champlist[5 + t].ToString()));
                    }
                    else
                    {
                        pc5.Load(Post3("http://gdc3.gudi.kr:42001/champ_list", champlist[t].ToString()));
                    }

                    hashtable = new Hashtable();
                    hashtable.Add("size", new Size(70, 25));
                    hashtable.Add("point", new Point(556 + (k * 74), 5 + (t * 30)));
                    if (itemtable["win"].ToString() == "True")
                    {
                        hashtable.Add("color", Color.FromArgb(163, 207, 236));
                    }
                    else if (itemtable["win"].ToString() == "False")
                    {
                        hashtable.Add("color", Color.FromArgb(226, 182, 176));
                    }
                    hashtable.Add("name", "TeamList");
                    if (k == 1)
                    {
                        hashtable.Add("text", namelist[5 + t]);
                    }
                    else
                    {
                        hashtable.Add("text", namelist[t]);
                    }
                    TeamList      = cm.getLabel(hashtable, LogPn);
                    TeamList.Font = new Font("맑은 고딕", 10, FontStyle.Bold);
                }
            }
            //grape_img();
        }
示例#5
0
        private void SummonerINFO_Load(object sender, EventArgs e)
        {
            url            = string.Format("https://kr.api.riotgames.com/lol/league/v4/positions/by-summoner/{0}?api_key={1}", name, wal.myapikey());
            this.BackColor = Color.White;
            Summoner_info(url);
            accountapi = string.Format("https://kr.api.riotgames.com/lol/summoner/v4/summoners/by-name/{0}?api_key={1}", ht["summonerName"].ToString(), wal.myapikey());
            matchlist  = string.Format("https://kr.api.riotgames.com/lol/match/v4/matchlists/by-account/{0}?endIndex=10&api_key={1}", accountfuc(accountapi), wal.myapikey());

            cm        = new Commons();
            hashtable = new Hashtable();
            hashtable.Add("size", new Size(50, 50));
            hashtable.Add("point", new Point(0, 0));
            hashtable.Add("pictureboxsizemode", PictureBoxSizeMode.Zoom);
            hashtable.Add("click", (EventHandler)Back_click);
            back        = cm.getPictureBox(hashtable, this);
            back.Image  = Properties.Resources.images;
            back.Cursor = Cursors.Hand;

            hashtable = new Hashtable();
            hashtable.Add("size", new Size(150, 150));
            hashtable.Add("point", new Point(115, 60));
            hashtable.Add("pictureboxsizemode", PictureBoxSizeMode.Zoom);
            tierpic           = cm.getPictureBox(hashtable, this);
            tierpic.BackColor = Color.White;
            tierpic.Load(string.Format("http://gdc3.gudi.kr:42001/emblems/Emblem_{0}.png", ht["tier"].ToString()));

            hashtable = new Hashtable();
            hashtable.Add("size", new Size(300, 40));
            hashtable.Add("point", new Point(270, 60));
            hashtable.Add("color", Color.White);
            hashtable.Add("name", "summonerName");
            //hashtable.Add("text", "서머너이름");
            hashtable.Add("text", ht["summonerName"]);
            SummonerName      = cm.getLabel(hashtable, this);
            SummonerName.Font = new Font("맑은 고딕", 20, FontStyle.Bold);

            hashtable = new Hashtable();
            hashtable.Add("size", new Size(150, 40));
            hashtable.Add("point", new Point(270, 110));
            hashtable.Add("color", Color.White);
            hashtable.Add("name", "tier");
            //hashtable.Add("text", "티어");
            hashtable.Add("text", ht["tier"]);
            tierlb      = cm.getLabel(hashtable, this);
            tierlb.Font = new Font("맑은 고딕", 20, FontStyle.Bold);

            hashtable = new Hashtable();
            hashtable.Add("size", new Size(30, 40));
            hashtable.Add("point", new Point(430, 110));
            hashtable.Add("color", Color.White);
            hashtable.Add("name", "rank");
            //hashtable.Add("text", "랭크");
            hashtable.Add("text", ht["rank"]);
            rankPoint      = cm.getLabel(hashtable, this);
            rankPoint.Font = new Font("맑은 고딕", 20, FontStyle.Bold);

            hashtable = new Hashtable();
            hashtable.Add("size", new Size(100, 40));
            hashtable.Add("point", new Point(470, 110));
            hashtable.Add("color", Color.White);
            hashtable.Add("name", "LP");
            //hashtable.Add("text", "포인트");
            hashtable.Add("text", ht["leaguePoints"]);
            ranknum      = cm.getLabel(hashtable, this);
            ranknum.Font = new Font("맑은 고딕", 20, FontStyle.Bold);

            hashtable = new Hashtable();
            hashtable.Add("size", new Size(150, 150));
            hashtable.Add("point", new Point(600, 60));
            hashtable.Add("color", Color.White);
            hashtable.Add("name", "BackgroundPN");
            chartpn = cm.getPanel(hashtable, this);

            hashtable = new Hashtable();
            hashtable.Add("size", new Size(985, 400));
            hashtable.Add("point", new Point(0, 220));
            hashtable.Add("color", Color.White);
            hashtable.Add("name", "summonerLOG");
            summonerLog            = cm.getPanel(hashtable, this);
            summonerLog.AutoScroll = true;

            hashtable = new Hashtable();
            hashtable.Add("size", new Size(150, 40));
            hashtable.Add("point", new Point(270, 160));
            hashtable.Add("color", Color.White);
            hashtable.Add("name", "position");
            //hashtable.Add("text", "포지션");
            hashtable.Add("text", ht["position"]);
            mainpostition      = cm.getLabel(hashtable, this);
            mainpostition.Font = new Font("맑은 고딕", 20, FontStyle.Bold);


            gameID_PULL(matchlist);
        }