/// <summary> /// Executes the clipboard operation /// </summary> /// <param name="targetFolder">The target folder of the operation</param> /// <returns>A task representing the operation</returns> public async Task <DriveItem> PasteAsync(DriveFolder targetFolder) { var task = ClipBoard.ExecuteAsync(targetFolder); ClipBoard.Clear(); return(await task); }
void OpenFileImpl(OpenFileCommand command) { string xmlFilePath = command.XmlFilePath; OpenInternal(xmlFilePath); //clear the clipboard to avoid copying between dyns ClipBoard.Clear(); }
/// <summary> /// Cancels the monitoring of the current user's asynchronous operations and clears the service's data /// </summary> private void OnUserLogout() { foreach (var operation in CurrentOperations) { operation.Cancel(); } Cache.Clear(); ClipBoard.Clear(); DriveId = null; }