Пример #1
0
        private void BtnFavoriteTeams_Click(object sender, EventArgs e)
        {
            var favoriteTeamDialog = new FavoriteTeam
            {
                ShowClosingMessage = false
            };

            favoriteTeamDialog.ShowDialog(this);
        }
Пример #2
0
        private void HandleLeagueChanged(Leagues oldLeague)
        {
            var newLeague = Properties.Settings.Default.League;

            if (oldLeague != newLeague)
            {
                var favoriteTeamDialog = new FavoriteTeam
                {
                    ShowClosingMessage = false
                };
                favoriteTeamDialog.ShowDialog(this);
            }
        }