Beispiel #1
0
 public ChooseProfileViewModel(List <Profile> profiles)
 {
     foreach (var profile in profiles)
     {
         var profileModel = new ProfileChoiceViewModel(profile);
         _profileModels.Add(profileModel);
     }
 }
Beispiel #2
0
 public ChooseProfileViewModel(MainWindowViewModel mwvm, List <Profile> profiles)
 {
     _mainWindowViewModel = mwvm;
     foreach (var profile in profiles)
     {
         var profileModel = new ProfileChoiceViewModel(profile);
         _profileModels.Add(profileModel);
     }
     _profileModels.CollectionChanged += ProfileModelsCollectionChanged;
 }