Esempio n. 1
0
        private void btnDetails_Click(object sender, EventArgs e)
        {
            League selectedLeague = GetSelectedLeague();

            if (selectedLeague != null)
            {
                LeaguesDetailsForm detailsForm = new LeaguesDetailsForm(selectedLeague.Id);
                detailsForm.Show();
            }
        }
Esempio n. 2
0
        private void lvLeagues_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            League selectedLeague = GetSelectedLeague();

            if (selectedLeague != null)
            {
                LeaguesDetailsForm detailsForm = new LeaguesDetailsForm(selectedLeague.Id);
                detailsForm.Show();
            }
        }
        private void lbLeagues_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            int index = lbLeagues.IndexFromPoint(e.Location);

            if (index != System.Windows.Forms.ListBox.NoMatches)
            {
                League league = lbLeagues.Items[index] as League;

                LeaguesDetailsForm leagueDetailsForm = new LeaguesDetailsForm(league.Id);
                leagueDetailsForm.Show();
            }
        }