/// <summary>
 /// Lädt die VM relevanten Daten
 /// </summary>
 public void LoadData()
 {
     foreach (DifficultyLevelScale difficultyLevelScale in _difficultyLevelScaleService.GetAll())
     {
         DifficultyLevelScales.Add(difficultyLevelScale);
     }
 }
Exemplo n.º 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);
     }
 }