async Task IDocument.SaveAsync(string path, DocumentSaveOperation operation)
        {
            var ok = await SaveAsync(
                NSUrl.FromFilename(path),
                operation == DocumentSaveOperation.ForCreating?
                UIDocumentSaveOperation.ForCreating :
                UIDocumentSaveOperation.ForOverwriting);

            if (!ok)
            {
                throw new Exception("UIDocument.SaveAsync failed");
            }
        }
Example #2
0
 public async Task SaveAsync(string path, DocumentSaveOperation operation)
 {
     this.path = path;
     System.IO.File.WriteAllText(path, TextData);
 }
Example #3
0
		async Task IDocument.SaveAsync (string path, DocumentSaveOperation operation)
		{
			var ok = await SaveAsync (
				NSUrl.FromFilename (path), 
				operation == DocumentSaveOperation.ForCreating ?
				UIDocumentSaveOperation.ForCreating :
				UIDocumentSaveOperation.ForOverwriting);
			if (!ok)
				throw new Exception ("UIDocument.SaveAsync failed");
		}
Example #4
0
		public async Task SaveAsync (string path, DocumentSaveOperation operation)
		{
			this.path = path;
			System.IO.File.WriteAllText (path, TextData);
		}