Esempio n. 1
0
        private void ShowGameResult_Click(object sender, EventArgs e)
        {
            var             l    = (Label)sender;
            FinalsTeamsGame game = (FinalsTeamsGame)l.Tag;

            if (game != null)
            {
                FormGameDetails form = new FormGameDetails(game);
                form.Show();
            }
        }
        /// <summary>
        /// Funkcja generyczna umożliwiajaca podejrzenie wynikow
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ShowGameResult_Click(object sender, EventArgs e)
        {
            try
            {
                var       l    = (Label)sender;
                TeamsGame game = (TeamsGame)l.Tag;

                if (game != null)
                {
                    FormGameDetails form = new FormGameDetails(game);
                    form.Show();
                }
            }
            catch (Exception)
            {
                MessageBox.Show("Kliknąć możesz jedynie na pole meczu.", "Help Caption");
            }
        }