public AddFilmPageViewModel(MainViewModel mvm)
 {
     SuperViewModel = mvm;
     ListVO         = ComboboxUtils.init(new Pays());
     ListME         = ComboboxUtils.init(new Pays());
     ListStatut     = ComboboxUtils.init(new Statut());
 }
示例#2
0
 public AddAmiViewModel(NavigationViewModel nav, Personne pers = null)
 {
     _amiService         = new AmiService();
     NavigationViewModel = nav;
     Civilites           = ComboboxUtils.init(new Civilite());
     Nationalites        = ComboboxUtils.init(new Langue());
     if (pers == null)
     {
         Ami     = new Personne();
         _update = false;
     }
     else
     {
         Ami     = pers;
         _update = true;
     }
 }
 public AddFilmViewModel(NavigationViewModel nav, Film film = null)
 {
     _filmService        = new FilmService();
     _genreService       = new GenreService();
     NavigationViewModel = nav;
     Genres  = _genreService.GetGenres();
     Langues = ComboboxUtils.init(new Langue());
     if (film == null)
     {
         Film    = new Film();
         _update = false;
     }
     else
     {
         Film    = film;
         _update = true;
     }
 }
示例#4
0
 public AddFriendPageViewModel(MainViewModel mvm)
 {
     SuperViewModel = mvm;
     ListCivilite   = ComboboxUtils.init(new Civilite());
     ListNat        = ComboboxUtils.init(new Pays());
 }
示例#5
0
 public AddCollabPageViewModel(MainViewModel mvm)
 {
     SuperViewModel = mvm;
     ListFonction   = ComboboxUtils.init(new Fonction());
 }