/// <summary> /// Constructeur. /// </summary> public StadesViewModel() { List<Stade> stadesModel = new JediTournamentManager().getAllStades(); // Initialise la collection modèle _stades = new ObservableCollection<StadeViewModel>(); foreach (Stade j in stadesModel) { _stades.Add(new StadeViewModel(j)); } if (_stades.Count > 0) _selectedItem = _stades[0]; }
/// <summary> /// Constructeur. /// </summary> public StadesViewModel() { List <Stade> stadesModel = new JediTournamentManager().getAllStades(); // Initialise la collection modèle _stades = new ObservableCollection <StadeViewModel>(); foreach (Stade j in stadesModel) { _stades.Add(new StadeViewModel(j)); } if (_stades.Count > 0) { _selectedItem = _stades[0]; } }