Nu är det ordning på popuperna
This commit is contained in:
6
GreadyPoang.Services/Services/Implements/LatestPopup.cs
Normal file
6
GreadyPoang.Services/Services/Implements/LatestPopup.cs
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
namespace GreadyPoang.Services;
|
||||||
|
|
||||||
|
public static class LatestPopup
|
||||||
|
{
|
||||||
|
public static string valueGuid = "";
|
||||||
|
}
|
||||||
@ -25,6 +25,7 @@ public partial class InfoPopupViewModel : ObservableObject, IQueryAttributable
|
|||||||
{
|
{
|
||||||
_popupService = popupService;
|
_popupService = popupService;
|
||||||
_popupEvent = popupEvent;
|
_popupEvent = popupEvent;
|
||||||
|
LatestPopup.valueGuid = PopupId;
|
||||||
}
|
}
|
||||||
|
|
||||||
[RelayCommand]
|
[RelayCommand]
|
||||||
|
|||||||
@ -81,6 +81,8 @@ public partial class ParticipantViewModel : BaseViewModel
|
|||||||
Shell.Current,
|
Shell.Current,
|
||||||
options: PopupOptions.Empty,
|
options: PopupOptions.Empty,
|
||||||
shellParameters: queryAttributes);
|
shellParameters: queryAttributes);
|
||||||
|
|
||||||
|
_activePopupId = LatestPopup.valueGuid;
|
||||||
}
|
}
|
||||||
|
|
||||||
return ParticipantList;
|
return ParticipantList;
|
||||||
|
|||||||
@ -193,6 +193,9 @@ public partial class RoundRunningViewModel : ObservableObject
|
|||||||
Shell.Current,
|
Shell.Current,
|
||||||
options: PopupOptions.Empty,
|
options: PopupOptions.Empty,
|
||||||
shellParameters: queryAttributes);
|
shellParameters: queryAttributes);
|
||||||
|
|
||||||
|
_activePopupId = LatestPopup.valueGuid;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -59,6 +59,7 @@ public static class MauiProgram
|
|||||||
builder.Services.AddTransientPopup<InfoPopup, InfoPopupViewModel>();
|
builder.Services.AddTransientPopup<InfoPopup, InfoPopupViewModel>();
|
||||||
builder.Services.AddSingleton<IPopupEventHub, PopupEventHub>();
|
builder.Services.AddSingleton<IPopupEventHub, PopupEventHub>();
|
||||||
|
|
||||||
|
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
builder.Logging.AddDebug();
|
builder.Logging.AddDebug();
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user