private void BeforeTransferStartCallback(TransferInitializationResult result) { if (result.TargetFreeSpace.HasValue && result.TargetFreeSpace <= TotalBytes) { WindowManager.ShowMessage(Resx.IOError, Resx.NotEnoughFreeSpaceOnTargetDevice); return; } if (result.TelnetException != null) { var dialog = new RemoteCopyErrorDialog(result.TelnetException); if (dialog.ShowDialog() == false) { return; } if (dialog.TurnOffRemoteCopy) { _userSettingsProvider.UseRemoteCopy = false; } } _remoteCopy = result.RemoteCopyMode; ProgressState = TaskbarItemProgressState.Normal; EventAggregator.GetEvent <TransferStartedEvent>().Publish(new TransferStartedEventArgs(this)); _elapsedTimeMeter.Restart(); ProcessQueueItem(); }
public TransferInitializationResult(RemoteCopyMode remoteCopyMode) { RemoteCopyMode = remoteCopyMode; }