internal void RaiseDocumentModified(GenericTextDocument document) { // Inform caller if (this.DocumentModified != null) { this.DocumentModified(document); } }
public void ThisApp_DocumentLoaded(Helpers.GenericTextDocument document) { if (currentImagePath != null && currentImagePath != previousImage) { File.Delete(AppUtils.GetPathForLocalFile(currentImagePath)); } string tempPath = document.FileUrl.Path; UIImage fullSize = UIImage.FromFile(tempPath); ShrinkAndSaveNewImage(fullSize); }
public void ThisApp_DocumentLoaded(Helpers.GenericTextDocument document) { if (currentFile != previousFile) { File.Delete(AppUtils.GetPathForLocalFile(currentFile)); } string tempPath = document.FileUrl.Path; string folderPath = Common.LocalData.Storage.GetCacheFolder("created"); currentFile = Path.Combine("created", DateTime.UtcNow.ToString("s") + Path.GetExtension(tempPath)); string fullCurrentPath = AppUtils.GetPathForLocalFile(currentFile); File.Copy(tempPath, fullCurrentPath); ListenButton.Enabled = true; }