public async Task DeleteKeyFile(DatabaseInfo databaseInfo)
        {         
            IStorageFile keyFile = await databaseInfo.GetKeyfile();
            await keyFile.DeleteAsync();

            databaseInfo.Info.KeyFilePath = "";
            await SaveInfo(databaseInfo.Folder, databaseInfo.Info);

        }
        protected async override Task OnActivate()
        {
            _databaseInfo = await _databaseInfoRepository.GetDatabaseInfo(_cache.DatabaseName);

            DatabaseName = _databaseInfo.Info.DatabasePath;
            if (!string.IsNullOrWhiteSpace(_databaseInfo.Info.KeyFilePath))
            {
                KeyFileName = _databaseInfo.Info.KeyFilePath;
            }
        }
 private async Task<DatabaseInfo> CreateDatabaseInfo(StorageFolder folder)
 {
     var databaseInfo = new DatabaseInfo(folder, await GetInfo(folder));
     return databaseInfo;
 }
 public DatabaseItemViewModel(DatabaseInfo databaseInfo)
 {
     DatabaseInfo = databaseInfo;
 }