コード例 #1
0
 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();
 }
コード例 #2
0
 public TransferInitializationResult(RemoteCopyMode remoteCopyMode)
 {
     RemoteCopyMode = remoteCopyMode;
 }