Med Popups och nytt system för släckning, men utan hantering av rätt popup
This commit is contained in:
@ -2,10 +2,11 @@
|
||||
|
||||
public class PopupEventHub : IPopupEventHub
|
||||
{
|
||||
public event EventHandler? InfoPopupCloseRequested;
|
||||
public event EventHandler<PopupCloseEventArgs>? InfoPopupCloseRequested;
|
||||
|
||||
public void RaiseInfoPopupClose()
|
||||
public void RaiseInfoPopupClose(string popupId)
|
||||
{
|
||||
InfoPopupCloseRequested?.Invoke(this, EventArgs.Empty);
|
||||
InfoPopupCloseRequested?.Invoke(this, new PopupCloseEventArgs(popupId));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -2,7 +2,8 @@
|
||||
|
||||
public interface IPopupEventHub
|
||||
{
|
||||
event EventHandler? InfoPopupCloseRequested;
|
||||
event EventHandler<PopupCloseEventArgs>? InfoPopupCloseRequested;
|
||||
|
||||
void RaiseInfoPopupClose(string popupId);
|
||||
|
||||
void RaiseInfoPopupClose();
|
||||
}
|
||||
11
GreadyPoang.Services/Services/PopupClosingEventArgs.cs
Normal file
11
GreadyPoang.Services/Services/PopupClosingEventArgs.cs
Normal file
@ -0,0 +1,11 @@
|
||||
namespace GreadyPoang.Services;
|
||||
|
||||
public class PopupCloseEventArgs : EventArgs
|
||||
{
|
||||
public string PopupId { get; }
|
||||
|
||||
public PopupCloseEventArgs(string popupId)
|
||||
{
|
||||
PopupId = popupId;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user