public void AbortTransfer()
        {
            if (SourcePane == null)
            {
                return;
            }

            _isAborted = true;
            if (_remoteCopy == RemoteCopyMode.Disabled)
            {
                SourcePane.Abort();
                if (TargetPane != null)
                {
                    TargetPane.Abort();
                }
            }
            lock (_queue)
            {
                var actualItem = _queue.Peek();
                _queue.Clear();
                _queue.Enqueue(actualItem);
            }
            if (_isPaused)
            {
                UIThread.BeginRun(FinishTransfer);
            }
        }
 private void ExecutePauseCommand()
 {
     IsPaused = true;
     SourcePane.Abort();
     if (TargetPane != null)
     {
         TargetPane.Abort();
     }
 }