Пример #1
0
 /// <summary>
 /// Sets selected league data to the controls
 /// </summary>
 /// <param name="selectedLeague">Selected league id</param>
 private void SetSelectedLeagueInfo(HM.Entities.Hattrick.WorldDetails.League selectedLeague)
 {
     pictureBoxFlag.Image           = GenericFunctions.GetFlagByLeagueId(selectedLeague.leagueIdField);
     linkLabelLeague.Text           = selectedLeague.leagueNameField;
     labelEnglishNameValue.Text     = selectedLeague.englishNameField;
     labelZoneNameValue.Text        = selectedLeague.zoneNameField;
     labelCurrencyNameValue.Text    = selectedLeague.countryField.currencyNameField;
     labelCurrencyRateValue.Text    = selectedLeague.countryField.currencyRateField.ToString();
     labelLeagueSeasonValue.Text    = selectedLeague.seasonField.ToString();
     labelMatchRoundValue.Text      = selectedLeague.matchRoundField.ToString();
     labelLeagueLevelsValue.Text    = selectedLeague.numberOfLevelsField.ToString();
     labelActiveUsersValue.Text     = selectedLeague.activeUsersField.ToString("N0");
     labelWaitingUsersValue.Text    = selectedLeague.waitingUsersField.ToString("N0");
     labelCupNameValue.Text         = selectedLeague.cupField.cupNameField.ToString();
     labelTrainingDateValue.Text    = GetEventTimeString(selectedLeague.trainingDateField);
     labelEconomyDateValue.Text     = GetEventTimeString(selectedLeague.economyDateField);
     labelCupMatchDateValue.Text    = GetEventTimeString(selectedLeague.cupMatchDateField);
     labelSeriesMatchDateValue.Text = GetEventTimeString(selectedLeague.seriesMatchDateField);
 }