Esempio n. 1
0
        private void NewRound()
        {
            HalfLifeGameState.Round round = gameState.AddRound(currentTimestamp);

            if (round.Number != 1)
            {
                analysisWindowInterface.GameLogWrite("\n");
            }

            GameLogWriteTimestamp();
            analysisWindowInterface.GameLogWrite(String.Format("Round {0}:\r", round.Number), Brushes.Black, TextDecorations.Underline);
        }
        void uiScoreboardRoundsListView_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            HalfLifeGameState.Round round = (HalfLifeGameState.Round)uiScoreboardRoundsListView.SelectedItem;

            if (round != null)
            {
                uiScoreboardTeamScoresListView.ItemsSource   = round.Teams;
                uiScoreboardPlayerScoresListView.ItemsSource = round.Players;
            }
            else
            {
                uiScoreboardTeamScoresListView.ItemsSource   = null;
                uiScoreboardPlayerScoresListView.ItemsSource = null;
            }
        }