private void OnTransferStarted(TransferStartedEventArgs e) { if (_transferProgressDialog == null) { _transferProgressDialog = new TransferProgressDialog(e.Sender as ITransferManagerViewModel); _transferProgressDialog.Closing += TransferProgressDialogOnClosing; _transferProgressDialog.Closed += TransferProgressDialogOnClosed; } MainWindowHitTestVisible(false); _isAbortionInProgress = false; _transferProgressDialog.Show(); }
private void TransferProgressDialogOnClosed(object sender, EventArgs e) { MainWindowHitTestVisible(true); _transferProgressDialog.Closed -= TransferProgressDialogOnClosed; _transferProgressDialog = null; }