Med Popups och nytt system för släckning, men utan hantering av rätt popup
This commit is contained in:
@ -9,6 +9,7 @@ public partial class InfoPopupViewModel : ObservableObject, IQueryAttributable
|
||||
{
|
||||
private readonly IPopupService _popupService;
|
||||
private readonly IPopupEventHub _popupEvent;
|
||||
public string PopupId { get; } = Guid.NewGuid().ToString();
|
||||
|
||||
public event EventHandler ClosePopupRequested;
|
||||
|
||||
@ -30,7 +31,7 @@ public partial class InfoPopupViewModel : ObservableObject, IQueryAttributable
|
||||
private async Task Cancel()
|
||||
{
|
||||
//await _popupService.ClosePopupAsync(Shell.Current);
|
||||
_popupEvent.RaiseInfoPopupClose();
|
||||
_popupEvent.RaiseInfoPopupClose(PopupId);
|
||||
}
|
||||
|
||||
[RelayCommand(CanExecute = nameof(CanSave))]
|
||||
@ -46,5 +47,4 @@ public partial class InfoPopupViewModel : ObservableObject, IQueryAttributable
|
||||
Message = (string)query[nameof(InfoPopupViewModel.Message)];
|
||||
Name = (string)query[nameof(InfoPopupViewModel.Name)];
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user