Misslyckat läge , men sparas

This commit is contained in:
2025-10-12 08:31:04 +02:00
parent 18f0dc566b
commit cc5ba52745
17 changed files with 96 additions and 176 deletions

View File

@ -1,5 +1,4 @@
using Common.Library;
using Gready_Poang.Core;
using Gready_Poang.DataLayer;
using Gready_Poang.EntityLayer;
using Gready_Poang.Services;
@ -21,9 +20,9 @@ public class RoundStartingViewModel : ViewModelBase
IMethodSharingService<Participant> sharingService,
ICombinedRepository combined,
IObjectMessageService objectMessage,
INavigationService nav,
IPageFactory factory,
ISplashService splashService,
//INavigationService nav,
//IPageFactory factory,
//ISplashService splashService,
AppShellViewModel appShellView
) : base()
{
@ -32,9 +31,9 @@ public class RoundStartingViewModel : ViewModelBase
_sharingService = sharingService;
_combined = combined;
_objectMessage = objectMessage;
_nav = nav;
_factory = factory;
_splashService = splashService;
//_nav = nav;
//_factory = factory;
//_splashService = splashService;
_appShellView = appShellView;
_roundElements = new ObservableCollection<RoundBuilderElement>();
}
@ -49,9 +48,9 @@ public class RoundStartingViewModel : ViewModelBase
private readonly IMethodSharingService<Participant> _sharingService;
private readonly ICombinedRepository _combined;
private readonly IObjectMessageService _objectMessage;
private readonly INavigationService _nav;
private readonly IPageFactory _factory;
private readonly ISplashService _splashService;
//private readonly INavigationService _nav;
//private readonly IPageFactory _factory;
//private readonly ISplashService _splashService;
private readonly AppShellViewModel _appShellView;
private Participant _selectedItem;
@ -253,13 +252,10 @@ public class RoundStartingViewModel : ViewModelBase
{
_objectMessage.CurrentGroup = rbGroup;
_objectMessage.Delivered = true;
//await _splashService.ShowSplash("Runda vald, gå till\r\r 'Påbörja eller fortsätt Runda'", 3000);
await Shell.Current.GoToAsync("RoundRunningPage");
await Shell.Current.GoToAsync("RoundRunningView");
_appShellView.RoundRunningVisible = false;
//_roundRunning.GobackVisible = false;
//var page = _factory.CreateRoundPage();
//_nav.NavigateToPageAsync(page);
}
}