Beispiel #1
0
        private void cmbRanks_SelectedValueChanged(object sender, EventArgs e)
        {
            dataGridView1.Rows.Clear();

            this.Cursor          = Cursors.WaitCursor;
            Select_TeamList.Text = cmbTeams.SelectedItem.ToString();
            var    team = CmbTeamList[cmbTeams.SelectedItem.ToString()];
            string url  = team["TEAM PAGE"];

            LogoUrl     = Scrapper.GetLogoUrl(url);
            TeamPlayers = Scrapper.GetActress(url);

            foreach (var playerInfo in TeamPlayers)
            {
                var obj = new List <object>();
                foreach (var info in playerInfo)
                {
                    obj.Add(info.Value);
                }
                dataGridView1.Rows.Add(obj.ToArray());
            }

            RenderLogo();
            this.Cursor = Cursors.Default;
        }
Beispiel #2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            this.Cursor = Cursors.WaitCursor;
            RenderLogo();
            cmbTeams.SelectedItem = null;
            CmbTeamList           = Scrapper.GetAllMenu();

            foreach (var item in CmbTeamList)
            {
                cmbTeams.Items.Add(item.Key);
            }

            this.Cursor = Cursors.Default;
        }