public async Task <bool> ShowDialog(ContainedDialog containedDialog) { if (containedDialog == null) { throw new ArgumentNullException(nameof(containedDialog)); } ShowControl(containedDialog); return(await containedDialog.ShowDialog(HideControl).ConfigureAwait(false)); }
public async Task <bool> ShowDialog(ContainedDialog containedDialog) { if (brdrContainer.Child is ContainedDialog oldDlg) { oldDlg.DismissDialog(); } ShowControl(containedDialog); return(await containedDialog.ShowDialog(HideControl).ConfigureAwait(false)); }