private void BtnFavoriteTeams_Click(object sender, EventArgs e) { var favoriteTeamDialog = new FavoriteTeam { ShowClosingMessage = false }; favoriteTeamDialog.ShowDialog(this); }
private void HandleLeagueChanged(Leagues oldLeague) { var newLeague = Properties.Settings.Default.League; if (oldLeague != newLeague) { var favoriteTeamDialog = new FavoriteTeam { ShowClosingMessage = false }; favoriteTeamDialog.ShowDialog(this); } }