public void CloseDialog(bool?result) { if (_tcs.Task.IsCompleted) { return; } _tcs.SetResult(result); DialogClose?.Invoke(this, EventArgs.Empty); }
private void OnDialogClose(EventArgs e) { DialogClose?.Invoke(this, e); }