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