Esempio n. 1
0
        static async Task <SaveAllSpecies> W8SaveFile(string filename, SaveAllSpecies data)
        {
            var objectStorageHelper = new WinRtUtility.ObjectStorageHelper <SaveAllSpecies>(WinRtUtility.StorageType.Local);
            await objectStorageHelper.SaveAsync(data, filename + ".xml");

            return(data);
        }
 public async Task<bool> SaveCanvasProjectAsync(CanvasProject canvas)
 {
     bool returnValue = false;
     try
     {
         var objStorageHelper = new WinRtUtility.ObjectStorageHelper<CanvasProject>(WinRtUtility.StorageType.Local);
         await objStorageHelper.SaveAsync(canvas, canvas.Id.ToString());
         returnValue = true;
     }
     catch (Exception ex)
     {
         returnValue = false;
     }
     return returnValue;
 }
        public async Task <bool> SaveCanvasProjectAsync(CanvasProject canvas)
        {
            bool returnValue = false;

            try
            {
                var objStorageHelper = new WinRtUtility.ObjectStorageHelper <CanvasProject>(WinRtUtility.StorageType.Local);
                await objStorageHelper.SaveAsync(canvas, canvas.Id.ToString());

                returnValue = true;
            }
            catch (Exception ex)
            {
                returnValue = false;
            }
            return(returnValue);
        }
Esempio n. 4
0
 static async Task<SaveAllSpecies> W8SaveFile(string filename, SaveAllSpecies data)
 {
     var objectStorageHelper = new WinRtUtility.ObjectStorageHelper<SaveAllSpecies>(WinRtUtility.StorageType.Local);
     await objectStorageHelper.SaveAsync(data, filename + ".xml");
     return data;
 }