/// <summary>
 /// Lädt die VM relevanten Daten
 /// </summary>
 public void LoadData()
 {
     foreach (DifficultyLevelScale difficultyLevelScale in _difficultyLevelScaleService.GetAll())
     {
         DifficultyLevelScales.Add(difficultyLevelScale);
     }
 }
Exemple #2
0
 /// <summary>
 ///     Lädt die VM relevanten Daten
 /// </summary>
 public void LoadData()
 {
     DifficultyLevelScales.Clear();
     foreach (DifficultyLevelScale difficultyLevelScale in _difficultyLevelScaleService.GetAll())
     {
         IItemWithNameViewModel <DifficultyLevelScale> difficultyLevelScaleViewModel = new ItemWithNameViewModel <DifficultyLevelScale>();
         difficultyLevelScaleViewModel.LoadData(difficultyLevelScale);
         DifficultyLevelScales.Add(difficultyLevelScaleViewModel);
     }
 }
Exemple #3
0
        /// <summary>
        /// Liefert eine neue INstanz des Design View Models
        /// </summary>
        public NameAndLevelInputDesignViewModel()
        {
            Name = "Weg 1";

            DifficultyLevelScales.Add(new DifficultyLevelScale()
            {
                Name = "Sächsisch"
            });
            SelectedDifficultyLevelScale = DifficultyLevelScales.First();

            DifficultyLevels.Add(new DifficultyLevel()
            {
                Name = "IV", Score = 500
            });
            SelectedDifficultyLevel = DifficultyLevels.First();
        }
 /// <summary>
 /// Liefert eine neue Instanz des Design View Models
 /// </summary>
 public DifficultyLevelScaleManagementDesignViewModel()
 {
     DifficultyLevelScales.Add(new ItemWithNameDesignViewModel <DifficultyLevelScale>());
     DifficultyLevelScales.Add(new ItemWithNameDesignViewModel <DifficultyLevelScale>());
 }