/// <summary> /// Méthode appelée lors du chargement /// </summary> protected override Task OnLoading() { ServiceBus.Get <IProjectManagerService>().ShowScenariosPicker(); EventBus.Subscribe <ScenarioChangedEvent>(e => { if (e.Scenario != null) { TryLoadScenario(e.Scenario.Id); } }); IProjectManagerService projectService = ServiceBus.Get <IProjectManagerService>(); if (projectService.CurrentScenario == null) { projectService.SelectScenario(ParentViewModel.Scenarios.First().Scenario); } else { TryLoadScenario(projectService.CurrentScenario.Id); } return(Task.CompletedTask); }