public async static Task <Page> CreatePageAsync(PhotoCapturedData data) { Page page = new Page(); page.FilePath = page.GetFilePath(); page.BackUpFilePath = page.GetBackUpFilePath(); page.ProcessingFilePath = page.GetProcessingFilePath(); page.FilteredFilePath = page.GetFilteredFilePath(); page.IsFromCamera = data.IsFromCamera; page.DateCreated = page.DateToString(); page.TimeCreated = page.TimeOfDayToString(); page.Number = 1; page.Size = data.ImageFileSize; page.PageName = "Page" + page.Number.ToString(); page.DocumentId = Guid.Empty; return(page); }
public async static Task<Page> CreatePageAsync(PhotoCapturedData data) { Page page = new Page(); page.FilePath = page.GetFilePath(); page.BackUpFilePath = page.GetBackUpFilePath(); page.ProcessingFilePath = page.GetProcessingFilePath(); page.FilteredFilePath = page.GetFilteredFilePath(); page.IsFromCamera = data.IsFromCamera; page.DateCreated = page.DateToString(); page.TimeCreated = page.TimeOfDayToString(); page.Number = 1; page.Size = data.ImageFileSize; page.PageName = "Page" + page.Number.ToString(); page.DocumentId = Guid.Empty; return page; }
public static async Task<PhotoCapturedData> CreatePhotoCapturedDataAsync(StorageFile imageFile, string categoryName) { var photoData = new PhotoCapturedData(categoryName); photoData.ImageFile = imageFile; photoData.ImageFileSize = (await imageFile.GetBasicPropertiesAsync()).Size; return photoData; }
public static async Task <PhotoCapturedData> CreatePhotoCapturedDataAsync(StorageFile imageFile, string categoryName) { var photoData = new PhotoCapturedData(categoryName); photoData.ImageFile = imageFile; photoData.ImageFileSize = (await imageFile.GetBasicPropertiesAsync()).Size; return(photoData); }
public async static Task<Document> CreateDocumentAsync(PhotoCapturedData capturedData) { var createdDocument = new Document(capturedData.CategoryName); var firstPage = await Page.CreatePageAsync(capturedData); firstPage.DocumentId = createdDocument.ID; createdDocument.Pages.Add(firstPage); createdDocument.DocumentSize = firstPage.MbSize; return createdDocument; }
public async static Task <Document> CreateDocumentAsync(PhotoCapturedData capturedData) { var createdDocument = new Document(capturedData.CategoryName); var firstPage = await Page.CreatePageAsync(capturedData); firstPage.DocumentId = createdDocument.ID; createdDocument.Pages.Add(firstPage); createdDocument.DocumentSize = firstPage.MbSize; return(createdDocument); }