private async void CancelDialogs(object sender, LocationChangedEventArgs e)
        {
            foreach (var DialogReference in Dialogs.ToList())
            {
                DialogReference.Dismiss(DialogResult.Cancel());
            }

            Dialogs.Clear();
            await InvokeAsync(StateHasChanged);
        }
 public void DismissAll()
 {
     _dialogs.ToList().ForEach(r => r.Dismiss(DialogResult.Cancel()));
     _dialogs.Clear();
     StateHasChanged();
 }
 public async Task Cancel()
 {
     await Close(DialogResult.Cancel());
 }
        internal void CancelInstance(Guid Id)
        {
            var reference = GetDialogReference(Id);

            CloseInstance(reference, DialogResult.Cancel());
        }
Beispiel #5
0
 public void Cancel()
 {
     Close(DialogResult.Cancel());
 }
Beispiel #6
0
 public void DismissAll()
 {
     _dialogs.ToList().ForEach(r => DismissInstance(r, DialogResult.Cancel()));
     StateHasChanged();
 }