Example #1
0
        public ProfilViewModel(INavigationService navigationService, IMyDBService myDB) : base(navigationService, myDB)
        {
            _navigationService = navigationService;
            NavigateToPublicProfilePageCommand = new DelegateCommand(NavigateToPublicProfilePage);

            IsFieldEmpty = false;

            Scams = new List <string>();
            Scams.Add("Aucune");
            Scams.Add("Dropshipping");
            Scams.Add("Incitation aux jeux d'argent");
            Scams.Add("Pornographie");
            Scams.Add("Vulgarité");
            Scams.Add("Violence");
            Scams.Add("Pédophilie");

            Ages = new List <int>();
            Ages.Add(3);
            Ages.Add(7);
            Ages.Add(12);
            Ages.Add(16);
            Ages.Add(18);

            Notes = new List <int>();
            Notes.Add(1);
            Notes.Add(2);
            Notes.Add(3);
            Notes.Add(4);
            Notes.Add(5);
        }
Example #2
0
        public ViewModelBase(INavigationService navigationService, IMyDBService mydbservice)
        {
            NavigationService = navigationService;
            MyDBService       = mydbservice;


            //Opinions = new List<Opinion>();
        }
        public MainPageViewModel(INavigationService navigationService, IMyDBService myDB)
            : base(navigationService, myDB)
        {
            SelectedYoutuber = new Youtuber();
            Title            = "YoutubeAdvisor";

            Youtubers = myDB.SelectYoutubeurs();

            _navigationService                 = navigationService;
            NavigateToAddYoutuberCommand       = new DelegateCommand(NavigateToAddYoutuberPage);
            NavigateToPublicProfilePageCommand = new DelegateCommand(NavigateToPublicProfilePage);
        }
Example #4
0
        public AddYoutuberViewModel(INavigationService navigationService, IMyDBService myDB)
            : base(navigationService, myDB)
        {
            _navigationService        = navigationService;
            NavigateToMainPageCommand = new DelegateCommand(NavigateToMainPage);

            NewYoutuber = new Youtuber();
            Youtubers   = new List <Youtuber>();

            IsFieldEmpty = false;

            Logos = new List <string>();
            Logos.Add("Femme");
            Logos.Add("Homme");

            Categories = new List <string>();
            Categories.Add("Musculation");
            Categories.Add("Podcast");
            Categories.Add("Lifestyle");
            Categories.Add("Jeux-vidéos");
            Categories.Add("Culture");
            Categories.Add("Sport");
        }
 public PublicProfileViewModel(INavigationService navigationService, IMyDBService myDB) : base(navigationService, myDB)
 {
     _navigationService      = navigationService;
     NavigateToProfilCommand = new DelegateCommand(NavigateToProfilPage);
     EnableButtonOpinion     = true;
 }