Beispiel #1
0
        private void showTeamDetails(int index)
        {
            Team team = TeamList.ListOfTeam.ElementAt(index);

            if (TeamList.ListOfTeam.ElementAt(lastSelectedIndex).StartTime == "0")
            {
                startTimeButton.IsEnabled = true;
            }
            else
            {
                startTimeButton.IsEnabled = false;
            }

            if (TeamList.ListOfTeam.ElementAt(lastSelectedIndex).FinishTime == "0" && TeamList.ListOfTeam.ElementAt(lastSelectedIndex).StartTime != "0")
            {
                stopTimeButton.IsEnabled = true;
            }
            else
            {
                stopTimeButton.IsEnabled = false;
            }

            nameTeamLabel.Content       = team.TeamName;
            startTimeLabel.Content      = team.StartTime;
            finishTimeLabel.Content     = team.FinishTime;
            amountHint2Label.Content    = team.NumberOfNextPlace;
            amountHintLabel.Content     = team.NumberOfHint;
            generalTimeLabel.Content    = team.OverallTime;
            actualPositionLabel.Content = TeamList.getTeamPosition(team.TeamName);
        }
Beispiel #2
0
 private void updateGeneralInformation()
 {
     numberOfTeamBeforeStartLabel.Content = TeamList.getBeforeStart();
     numberOfTeamLabel.Content            = PropertiesStalking.numberOfTeam;
     numberOfTeamOnFinishLabel.Content    = TeamList.getOnFinish();
     numberOfTeamOnRoadLabel.Content      = TeamList.getOnRoad();
     timeLabel.Content = DateTime.Now.ToLongTimeString();
 }
Beispiel #3
0
 private void sortTable()
 {
     table = TeamList.sortTable();
 }