private void RefreshTournamentDataContexts()
{
this.tournament.PlayerPlaceChanged += new EventHandler(tournament_PlayerPlaceChanged);
this.DataContext = this.tournament;
this.ctrlPlayoffs16.DataContext = null;
this.ctrlPlayoffs16.DataContext = this.tournament.Playoffs16;
this.ctrlPlayoffs8.DataContext = null;
this.ctrlPlayoffs8.DataContext = this.tournament.Playoffs8;
this.tournament_PlayerPlaceChanged(null, null);
if (this.tabRound.Items.Count != 0)
{
(this.tabRound.Items[this.tabRound.Items.Count - 1] as Round).ScoreEnabled = true;
this.tabRound.SelectedIndex = this.tabRound.Items.Count - 1;
}
this.SortFinalResults();
}