Пример #1
0
		public Task<bool> ImportFileAsync(StorageFile file)
		{
			return RunFunctionIfOpenAsyncTB(async delegate
			{
				if (DBManager != null && file != null && await file.GetFileSizeAsync() > 0)
				{
					var newDoc = new Document(DBManager, Id);
					newDoc.SetUri0(Path.GetFileName(file.Path));

					return await AddDocument2Async(newDoc).ConfigureAwait(false);
				}
				return false;
			});
		}