Example #1
0
 async Task PlatformRename(NGIStorageItem item, string newName, NGNameCollisionOption option)
 {
     if (item.Context is Windows.Storage.IStorageItem winItem)
     {
         await winItem.RenameAsync(newName, (Windows.Storage.NameCollisionOption) option);
     }
 }
Example #2
0
 async Task PlatformDelete(NGIStorageItem item, bool deletePermanently)
 {
     if (item.Context is Windows.Storage.IStorageItem winItem)
     {
         await winItem.DeleteAsync(deletePermanently?StorageDeleteOption.PermanentDelete : StorageDeleteOption.Default);
     }
 }