/// <summary> /// Paste the file according to the infomation in main scriptable object info to the current directory. /// If current directory is container, the paste button is inactive. /// </summary> public async void PasteAfterCut() { try { requestMessage = "Send request: create a container"; if (await AzureStorageManager.CopyAndPasteBlob(info.CopyedContainer, info.Container, info.CopyedFilePath + info.CopyedFileName, info.AbsolutePath + info.CopyedFileName, LogEvent) == true) { PopUpWarning("Paste file successfully. Notice: move files in Azure storage may lose track of file from database."); } else { PopUpWarning("Name is invalid or already existed."); } } catch (StorageException ex) { PopUpWarning(ex.Message); } finally { info.Pasted(); ClearRightClickMenu(); RefreshPage(); } }