private void gridStandings_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.ColumnIndex == 0 && e.RowIndex != -1)
            {
                String teamName = Convert.ToString(gridStandings.Rows[e.RowIndex].Cells[e.ColumnIndex].Value);

                FormTeam frmTeam = new FormTeam(FormLogin.docMain.getTeamByName(teamName), FormLogin.docMain);
                frmTeam.Show();
            }
        }
        private void gridStandings_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.ColumnIndex == 0 && e.RowIndex != -1)
            {
                String teamName = Convert.ToString(gridStandings.Rows[e.RowIndex].Cells[e.ColumnIndex].Value);

                FormTeam frmTeam = new FormTeam(FormLogin.docMain.getTeamByName(teamName), FormLogin.docMain);
                frmTeam.Show();
            }
        }
Example #3
0
        private void labelTeam_Click(object sender, EventArgs e)
        {
            int row    = tableResults.GetRow(sender as Control);
            int column = tableResults.GetColumn(sender as Control);

            if (column == 1)
            {
                FormTeam frmTeam = new FormTeam(matchesInRound[row].HomeTeam, docMain);
                frmTeam.Show();
            }
            if (column == 3)
            {
                FormTeam frmTeam = new FormTeam(matchesInRound[row].GuestTeam, docMain);
                frmTeam.Show();
            }
        }
Example #4
0
 private void labelTeam_Click(object sender, EventArgs e)
 {
     int row = tableResults.GetRow(sender as Control);
     int column = tableResults.GetColumn(sender as Control);
     if (column == 1)
     {
         FormTeam frmTeam = new FormTeam(matchesInRound[row].HomeTeam, docMain);
         frmTeam.Show();
     }
     if (column == 3)
     {
         FormTeam frmTeam = new FormTeam(matchesInRound[row].GuestTeam, docMain);
         frmTeam.Show();
     }
 }