public void DatabaseLogic_CreateDatabase()
        {
            DatabaseLogic.CreateDatabase();

            using (SQLiteConnection dbConn = SqlConnectionFactory.GetSqlConnection()) {
                List <Account> temp1 = dbConn.Table <Account>().ToList();
                List <FinancialTransaction> temp2 = dbConn.Table <FinancialTransaction>().ToList();
                List <RecurringTransaction> temp3 = dbConn.Table <RecurringTransaction>().ToList();
                List <Category>             temp4 = dbConn.Table <Category>().ToList();
            }
        }
        static ViewModelLocator()
        {
            DatabaseLogic.CreateDatabase();

            ServiceLocator.SetLocatorProvider(() => SimpleIoc.Default);

            //DataAccess
            SimpleIoc.Default.Register <IDataAccess <Account>, AccountDataAccess>();
            SimpleIoc.Default.Register <IDataAccess <Category>, CategoryDataAccess>();
            SimpleIoc.Default.Register <IDataAccess <FinancialTransaction>, TransactionDataAccess>();
            SimpleIoc.Default.Register <IDataAccess <RecurringTransaction>, RecurringTransactionDataAccess>();
            SimpleIoc.Default.Register <SettingDataAccess>();

            //Logic
            SimpleIoc.Default.Register <IUserNotification, UserNotification>();
            SimpleIoc.Default.Register <IJsonService, JsonService>();
            SimpleIoc.Default.Register <IBackupService, OneDriveBackupService>();
            SimpleIoc.Default.Register(CreateNavigationService);
            SimpleIoc.Default.Register <Utilities>();
            SimpleIoc.Default.Register <Backup>();

            //Manager
            SimpleIoc.Default.Register <LicenseManager>();
            SimpleIoc.Default.Register <CurrencyManager>();

            //Repositories
            SimpleIoc.Default.Register <ITransactionRepository, TransactionRepository>();
            SimpleIoc.Default.Register <IRecurringTransactionRepository, RecurringTransactionRepository>();
            SimpleIoc.Default.Register <IAccountRepository, AccountRepository>();
            SimpleIoc.Default.Register <IRepository <Category>, CategoryRepository>();

            //ViewModels
            SimpleIoc.Default.Register <AddAccountViewModel>();
            SimpleIoc.Default.Register <AccountListUserControlViewModel>();
            SimpleIoc.Default.Register <AddTransactionViewModel>();
            SimpleIoc.Default.Register <BalanceViewModel>();
            SimpleIoc.Default.Register <CategoryListViewModel>();
            SimpleIoc.Default.Register <TransactionListViewModel>();
            SimpleIoc.Default.Register <TileSettingsViewModel>();
            SimpleIoc.Default.Register <GeneralSettingViewModel>();
            SimpleIoc.Default.Register <SettingDefaultsViewModel>();
            SimpleIoc.Default.Register <SelectCurrencyViewModel>();
            SimpleIoc.Default.Register <StatisticViewModel>();
            SimpleIoc.Default.Register <BackupViewModel>();
        }