Beispiel #1
0
        private async Task MigrateDatabase()
        {
            if (!App.SettingsHelper.IsDbMigrated && StorageHelper.FileExists("VoiceMemos.sdf"))
            {
                IsSelectionEnabled = false;
                IsAppBarVisible    = false;
                IsBusy             = true;

                await DatabaseMigrator.MigrateAsync();

                App.SettingsHelper.IsDbMigrated = true;
                App.SettingsHelper.SaveSettings();

                Application.Current.Terminate();
            }
        }