コード例 #1
0
 internal void RaiseDocumentModified(GenericTextDocument document)
 {
     // Inform caller
     if (this.DocumentModified != null)
     {
         this.DocumentModified(document);
     }
 }
コード例 #2
0
        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);
        }
コード例 #3
0
        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;
        }