Пример #1
0
        /// <summary>
        /// Clouds the copy item.
        /// </summary>
        private void CloudCopyItem()
        {
            try
            {
                try
                {
                    // Copies the selected files under the cursor to the cloud

                    // Starts off a thread to copy the item without blocking the main thread.
                    CloudCopytItemDelegate thread = cloud.CloudCopyItem;
                    thread.BeginInvoke(SelectedItemPaths, null, null);
                }
                catch (Exception e)
                {
                    CommonFunctionality.Instance.Authenticate(true); // reauthenticate and try again
                    cloud.CloudCopyItem(SelectedItemPaths);
                }
            }
            catch (Exception e)
            {
                PrintLogCritialException(e);
            }
        }