예제 #1
0
 public ExpendituresDataService(
     ILocalDatabase localDatabase, IRestConnection restConnection, IExpendituresCache expendituresCache)
 {
     _localDatabase  = localDatabase;
     _restConnection = restConnection;
     _cache          = expendituresCache;
 }
 public NewExerciseViewModel(INavService navService, IFitnessService fitness, ILocalDatabase localDatabase)
     : base(navService)
 {
     this.navService    = navService;
     _fitnessService    = fitness;
     this.localDatabase = localDatabase;
 }
 public EditWorkoutViewModel(INavService navService, IFitnessService fitnessService, ILocalDatabase localDatabase)
     : base(navService)
 {
     this.navService    = navService;
     _fitnessService    = fitnessService;
     this.localDatabase = localDatabase;
 }
예제 #4
0
 public MainWindowLogic()
 {
     analyzeECG  = new AnalyzeECG();
     patientList = new List <PatientModel>();
     aECGList    = new List <AnalyzedECGModel>();
     DB          = new TestDB();
     DOEDB       = new DOEDB();
     patientList = DB.GetAllPatients();
     aECGList    = DB.GetAllAnalyzedECGs();
 }
 public SetupWindowLogic()
 {
     ecgMonitorList = new List <ECGMonitorModel>();
     patientList    = new List <PatientModel>();
     DB             = new TestDB();
     patientList    = DB.GetAllPatients();
     ecgMonitorList = DB.GetAllECGMonitors();
     newPatient("112233-4455", "Jens", "Jensen");
     LinkECGToPatient("112233-4455", 1);
     ResetECGMonitor(1);
     getAllMonitors();
     getAllPatiens();
     monitorInUse(1);
 }
예제 #6
0
        public AnalyzeECG()
        {
            illnessList = new List <IllnessModel>();
            patientRef  = new PatientModel();
            lDBRef      = new TestDB();
            ecgList     = new List <ECGModel>();
            ecgList     = lDBRef.GetAllECGs();
            newECGList  = new List <ECGModel>();
            foreach (ECGModel ecg in ecgList)
            {
                if (!ecg.IsAnalyzed)
                {
                    newECGList.Add(ecg);
                }
            }

            //Der oprettes nye aECG for alle nye ECG'er
            foreach (ECGModel ecg in newECGList)
            {
                NewAECGModelsList.Add(new AnalyzedECGModel());
            }
        }
예제 #7
0
 public RecentSearchRepository(ILocalDatabase localDatabase)
 => _connection = localDatabase.GetConnection();
예제 #8
0
 public CategoriesDataService(IRestConnection restConnection, ILocalDatabase localDb)
 {
     _restConnection = restConnection;
     _localDb        = localDb;
 }
예제 #9
0
 public HandleAppLifeCycleService(INavigationService navigationService, ILocalDatabase localDatabase, IAppNavigationService appNavigationService)
 {
     _localDatabase        = localDatabase;
     _appNavigationService = appNavigationService;
     _appNavigationService.PrismNavigationService = navigationService;
 }
 public DailyMissionManager(ILocalDatabase localDatabase, IRemoteDatabase remoteDatabase, IRemoteConfig remoteConfig)
 {
     _localDatabase  = localDatabase;
     _remoteDatabase = remoteDatabase;
     _remoteConfig   = remoteConfig;
 }
예제 #11
0
 public VotedQueuedRoutesRepository(ILocalDatabase localDatabase)
 {
     _connection = localDatabase.GetConnection();
 }
예제 #12
0
 public FavoriteRoutesRepository(ILocalDatabase localDatabase)
 {
     _connection = localDatabase.GetConnection();
 }
예제 #13
0
 public CachedPkgPartReader1(IPackagePartManager packagePartManager, IFileSystemAccesor fileSystemAccesor, ILocalDatabase localDatabase)
 {
     _fs  = fileSystemAccesor;
     _db  = localDatabase;
     _mgr = packagePartManager;
 }
예제 #14
0
 public BusStopRepository(ILocalDatabase localDatabase)
 {
     _connection = localDatabase.GetConnection();
 }
예제 #15
0
 public SyncService(IFitnessService fitnessService, ILocalDatabase localDatabase)
 {
     _fitnessService      = fitnessService;
     _localDatabase       = localDatabase;
     Barrel.ApplicationId = "CachingDataSample";
 }