Esempio n. 1
0
 public IncidentService(IIncidentsAppService incidentsAppService, IDbService <LocalIncident> dbService, IProfileAppService profileAppService,
                        ProxyPictureControllerService pictureControllerService)
 {
     _incidentsAppService      = incidentsAppService;
     DbService                 = dbService;
     this.profileAppService    = profileAppService;
     _pictureControllerService = pictureControllerService;
 }
Esempio n. 2
0
 public IncidentDetailsPageModel(IIncidentsAppService incidentsAppService)
 {
     _incidentsAppService    = incidentsAppService;
     _showPhotographsIcon    = "+";
     ShowAdvancedOptionsIcon = "+";
     TypeOfFlooding          = new ObservableCollection <ImageItem>();
     ListImages = new ObservableCollection <ImageItem>();
 }
Esempio n. 3
0
 public IncidentCurrentPageModel(ILocationService locationService, IIncidentService incidentService,
                                 INavigationService navigationService, IApplicationContext applicationContext, INavigationHelper navigationHelper,
                                 IIncidentsAppService incidentsAppService, IAccessTokenManager accessTokenManager)
 {
     _locationService     = locationService;
     _incidentService     = incidentService;
     _navigationService   = navigationService;
     _applicationContext  = applicationContext;
     _navigationHelper    = navigationHelper;
     _incidentsAppService = incidentsAppService;
     _accessTokenManager  = accessTokenManager;
 }
        public IncidentUploadPageModel(IIncidentService incidentService, INavigationService navigationService, INavigationHelper navigationHelper,
                                       IAccessTokenManager accessTokenManager, IIncidentsAppService incidentsAppService)
        {
            _incidentService     = incidentService;
            _navigationService   = navigationService;
            _accessTokenManager  = accessTokenManager;
            _incidentsAppService = incidentsAppService;


            Items    = new ObservableRangeCollection <LocalIncident>();
            AllItems = new ObservableRangeCollection <LocalIncident>();

            FilterOptions = new ObservableRangeCollection <DisplayItem>
            {
                new DisplayItem
                {
                    Text  = "ShowAll".Translate(),
                    Value = string.Empty
                },
                new DisplayItem
                {
                    Text  = "Showlastday".Translate(),
                    Value = DateTime.Today.AddDays(-1).ToString(CultureInfo.InvariantCulture)
                },
                new DisplayItem
                {
                    Text  = "Showlastweek".Translate(),
                    Value = DateTime.Today.AddDays(-7).ToString(CultureInfo.InvariantCulture)
                }
            };

            SelectedFilter = new DisplayItem
            {
                Text  = "ShowAll",
                Value = string.Empty
            };

            _navigationHelper = navigationHelper;
        }