Nu fungerar hanteringen kring navigation

This commit is contained in:
2025-10-05 08:57:34 +02:00
parent a449dbeab3
commit b567291063
15 changed files with 115 additions and 56 deletions

View File

@ -23,7 +23,9 @@ public class RoundStartingViewModel : ViewModelBase
IObjectMessageService objectMessage,
INavigationService nav,
IPageFactory factory,
ISplashService splashService) : base()
ISplashService splashService,
AppShellViewModel appShellView
) : base()
{
_roundsRepo = roundsRepo;
_pointsRepo = pointsRepo;
@ -33,6 +35,7 @@ public class RoundStartingViewModel : ViewModelBase
_nav = nav;
_factory = factory;
_splashService = splashService;
_appShellView = appShellView;
_roundElements = new ObservableCollection<RoundBuilderElement>();
}
@ -49,6 +52,7 @@ public class RoundStartingViewModel : ViewModelBase
private readonly INavigationService _nav;
private readonly IPageFactory _factory;
private readonly ISplashService _splashService;
private readonly AppShellViewModel _appShellView;
private Participant _selectedItem;
private ObservableCollection<RoundBuilderElement> _roundElements;
@ -248,11 +252,14 @@ public class RoundStartingViewModel : ViewModelBase
if (rbGroup != null)
{
_objectMessage.CurrentGroup = rbGroup;
await _splashService.ShowSplash("Runda vald, gå till\r 'Påbörja eller fortsätt Runda'", 3000);
// await Shell.Current.GoToAsync("RoundRunning");
_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");
_appShellView.RoundRunningVisible = false;
//_roundRunning.GobackVisible = false;
//var page = _factory.CreateRoundPage();
//await _nav.NavigateToPageAsync(page);
//_nav.NavigateToPageAsync(page);
}
}