private void OnTransferFinished(TransferFinishedEventArgs e) { if (e.Target != this || !IsContentScanTriggerAvailable) { return; } var scanFolder = GetCorrespondingScanFolder(CurrentFolder.Path); if (scanFolder == null) { return; } switch (UserSettingsProvider.FsdContentScanTrigger) { case FsdContentScanTrigger.AfterUpload: TriggerContentScan(scanFolder.PathId); break; case FsdContentScanTrigger.AfterConnectionClose: _doContentScanOn.Add(scanFolder.PathId); break; } }
private void OnTransferFinished(TransferFinishedEventArgs e) { if (_transferProgressDialog != null) { _transferProgressDialog.Closing -= TransferProgressDialogOnClosing; if (_abortDialog != null) _abortDialog.Close(false); UIThread.BeginRun(() => _transferProgressDialog.Close()); } }
private void FinishTransfer() { _queue = null; _statistics.TimeSpentWithTransfer += _elapsedTimeMeter.Elapsed; if (_remoteCopy != RemoteCopyMode.Disabled) { CloseTelnetSession(); } _elapsedTimeMeter.Stop(); ProgressState = TaskbarItemProgressState.None; var args = new TransferFinishedEventArgs(this, SourcePane, TargetPane); if (_shutdown != Shutdown.Disabled && (UserAction == FileOperation.Copy || UserAction == FileOperation.Move)) { ShutdownDialogViewModel vm; if (_shutdown.HasFlag(Shutdown.Xbox)) { var ftp = Pane <FtpContentViewModel>(); if (ftp == SourcePane) { _sourceChanged = false; } if (ftp == TargetPane) { _targetChanged = false; } vm = new ShutdownDialogViewModel(WindowManager, _shutdown, ftp); } else { vm = new ShutdownDialogViewModel(WindowManager, _shutdown); } WindowManager.ShowModelessWindow <ShutdownDialog, ShutdownDialogViewModel>(vm); } if (_sourceChanged) { SourcePane.Refresh(false); } if (_targetChanged && TargetPane != null) { TargetPane.Refresh(false); } EventAggregator.GetEvent <TransferFinishedEvent>().Publish(args); SourcePane = null; TargetPane = null; }
private void OnTransferFinished(TransferFinishedEventArgs e) { SilentTargetPath = null; }