Ejemplo n.º 1
0
        private void dataGridMarkets_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            try
            {
                if (dataGridMarkets.Columns[e.ColumnIndex].Name == "Odds")
                {
                    if (!e.RowIndex.ToString().Equals("-1"))
                    {
                        long   id      = Convert.ToInt64(dataGridMarkets.Rows[e.RowIndex].Cells[0].Value);
                        long   matchid = Convert.ToInt64(dataGridMarkets.Rows[e.RowIndex].Cells[1].Value);
                        string match   = groupBox1.Text;
                        string link    = Convert.ToString(dataGridMarkets.Rows[e.RowIndex].Cells[3].Value);

                        Form childForm = new MarketOdds(link, id, matchid, match);
                        childForm.MdiParent = this.ParentForm;
                        //childForm.Text = "Window " + childFormNumber++;
                        childForm.Show();
                        //MessageBox.Show(id);
                    }
                }
            }
            catch (Exception ex)
            {
            }
        }
Ejemplo n.º 2
0
        private void dataGridMarkets_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            try
            {
                if (dataGridMarkets.Columns[e.ColumnIndex].Name == "Odds")
                {
                    if (!e.RowIndex.ToString().Equals("-1"))
                    {
                        long id = Convert.ToInt64(dataGridMarkets.Rows[e.RowIndex].Cells[0].Value);
                        long matchid = Convert.ToInt64(dataGridMarkets.Rows[e.RowIndex].Cells[1].Value);
                        string match = groupBox1.Text;
                        string link = Convert.ToString(dataGridMarkets.Rows[e.RowIndex].Cells[3].Value);

                        Form childForm = new MarketOdds(link, id, matchid,match);
                        childForm.MdiParent = this.ParentForm;
                        //childForm.Text = "Window " + childFormNumber++;
                        childForm.Show();
                        //MessageBox.Show(id);
                    }
                }
            }
            catch (Exception ex)
            {
            }
        }