コード例 #1
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];
        }
コード例 #2
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];
            }
        }