예제 #1
0
        void Click1(object sender, EventArgs e)
        {
            ItemMatch item = sender as ItemMatch;
            int       a    = Convert.ToInt32(item.Tag.ToString());

            if (KTYTB(link1[a]) >= 0)
            {
                link1[a] = "0";
            }
            //Movie_module.FrmVLC frmVLC = new Movie_module.FrmVLC(link1[a]);
            //frmVLC.StartPosition = FormStartPosition.CenterScreen;
            //frmVLC.Show();
            ShowVlc(link1[a], team[a]);
        }
예제 #2
0
        public Football()
        {
            InitializeComponent();
            crawData();
            int sotran = logo1.Count;

            for (int i = 0; i < sotran; i++)
            {
                ItemMatch itemMatch = new ItemMatch();
                //itemMatch.BackColor = Color.Transparent;

                //itemMatch.ptb_team1.Tag = i.ToString();
                //itemMatch.ptb_team2.Tag = i.ToString();
                //itemMatch.txtTime.Tag = i.ToString();
                //itemMatch.txtTeam.Tag = i.ToString();
                //itemMatch.txtLeage.Tag = i.ToString();

                itemMatch.Tag           = i.ToString();
                itemMatch.txtLeage.Tag  = i.ToString();
                itemMatch.txtTeam.Tag   = i.ToString();
                itemMatch.txtTime.Tag   = i.ToString();
                itemMatch.ptb_team1.Tag = i.ToString();
                itemMatch.ptb_team2.Tag = i.ToString();

                itemMatch.ptb_team1.ImageLocation = logo1[i];
                //itemMatch.ptb_team1.SizeMode = PictureBoxSizeMode.StretchImage;
                itemMatch.ptb_team2.ImageLocation = logo2[i];
                //itemMatch.ptb_team2.SizeMode = PictureBoxSizeMode.StretchImage;
                itemMatch.txtTime.Text  = time[i];
                itemMatch.txtTeam.Text  = team[i];
                itemMatch.txtLeage.Text = leage[i];
                itemMatches.Add(itemMatch);
                flowLayoutPanel1.Controls.Add(itemMatch);

                itemMatch.Click           += Click1;
                itemMatch.ptb_team1.Click += Click5;
                itemMatch.ptb_team2.Click += Click6;
                itemMatch.txtLeage.Click  += Click2;
                itemMatch.txtTeam.Click   += Click3;
                itemMatch.txtTime.Click   += Click4;
            }
        }