protected OnClosing ( CancelEventArgs e ) : void | ||
e | CancelEventArgs | |
Résultat | void |
protected override void OnClosing(CancelEventArgs e) {
base.OnClosing(e);
if (IsResultCancel) {
try {
_cancellationSource.Cancel();
} catch (ObjectDisposedException) {}
}
}