Example #1
0
 public NewEnregistrementViewModel(INavigationService navigationService, IEnregistrementService enregistrementService)
     : base(navigationService)
 {
     _enregistrementService = enregistrementService;
     Title           = "Nouveau";
     PrendrePhoto    = new DelegateCommand(prendrePhotoAsync);
     CommandAddEnreg = new DelegateCommand(AddEnregAsync, CanAddEnreg).ObservesProperty(() => Name).ObservesProperty(() => Description).ObservesProperty(() => Tag).ObservesProperty(() => PhotoImage);
 }
        public EditEnregistrementViewModel(INavigationService navigationService, IEnregistrementService enregistrementService, IPageDialogService dialogService)
            : base(navigationService)
        {
            Title = "Modification de l'enregistrement";
            _enregistrementService = enregistrementService;
            _dialogService         = dialogService;

            CommandEditEnregistrement = new DelegateCommand(EditEnregistrement).ObservesProperty(() => Name).ObservesProperty(() => Description)
                                        .ObservesProperty(() => StringTags);
        }
        public EnregistrementDetailViewModel(INavigationService navigationService, IEnregistrementService enregistrementService, IPageDialogService dialogService)
            : base(navigationService)
        {
            Title = "Détail de l'enregistrement";
            _enregistrementService = enregistrementService;
            _dialogService         = dialogService;

            CommandEditEnregistrement   = new DelegateCommand(EditEnregistrement);
            CommandDeleteEnregistrement = new DelegateCommand(DeleteEnregistrement);
        }
Example #4
0
 public MapViewModel(INavigationService navigationService, IEnregistrementService enregistrementService)
     : base(navigationService)
 {
     _enregistrementService = enregistrementService;
     Title                 = "Map";
     mainMap               = new Map();
     Enregistrements       = new ObservableCollection <Enregistrement>();
     mainMap.IsShowingUser = true;
     getCurrentLocation();
     mainMap.MapType = MapType.Street;
 }
 public AdminController(GestionConcourCoreDbContext context, IIndexService index, ISearch3Service search, ICorbeil3Service corbeil, IEnregistrementService enregistrement, ISelectionService selection, IPreselectionService preselec, IEpreuveService epreuve, ICorrectionService corret, IStatistiqueService statistique)
 {
     this.index          = index;
     this.search         = search;
     this.corbeil        = corbeil;
     this.selection      = selection;
     this.preselec       = preselec;
     this.epreuve        = epreuve;
     this.enregistrement = enregistrement;
     this.corret         = corret;
     this.statistique    = statistique;
     _context            = context;
 }
 public EnregistrementsViewModel(INavigationService navigationService, IEnregistrementService enregistrementService)
     : base(navigationService)
 {
     _enregistrementService = enregistrementService;
     Title = "Enregistrements";
     CommandEnregDetails = new DelegateCommand <Enregistrement>(EnregistrementDetails);
     ToggleCommand       = new DelegateCommand <String>(ToggleSwitch);
     Enregistrements     = new ObservableCollection <Enregistrement>();
     FilteredEnreg       = new ObservableCollection <Enregistrement>();
     toggles             = new Dictionary <string, bool>();
     toggles.Add("Drink", true);
     toggles.Add("Food", true);
     toggles.Add("ToSee", true);
     SortDown = new DelegateCommand(TrierUp);
     SortUp   = new DelegateCommand(TrierDown);
 }
        public EnregistrementsViewModel(INavigationService navigationService, IEnregistrementService enregistrementService, IPageDialogService dialogService)
            : base(navigationService)
        {
            Title = "Liste des enregistrements";
            _enregistrementService   = enregistrementService;
            _dialogService           = dialogService;
            enregistrementsInDb      = new ObservableCollection <Enregistrement>();
            EnregistrementsDisplayed = new ObservableCollection <Enregistrement>();

            CommandSearch     = new DelegateCommand(SearchCommand);
            CommandFilterUp   = new DelegateCommand(FilterUp);
            CommandFilterDown = new DelegateCommand(FilterDown);
            CommandReset      = new DelegateCommand(Reset);

            CommandEnregistrementDetail = new DelegateCommand <Enregistrement>(EnregistrementDetail);
            CommandDeleteEnregistrement = new DelegateCommand <Enregistrement>(DeleteEnregistrement);
        }
Example #8
0
 public EnregistrementDetailsViewModel(INavigationService navigationService, IEnregistrementService enregistrementService) : base(navigationService)
 {
     _enregistrementService = enregistrementService;
     Title     = "Détails Enregistrement";
     Supprimer = new DelegateCommand(supprimerAsync);
 }