public async Task ExecuteLoadCommand() { Poll = await pollDetailsService.GetPoll(); if (Poll == null) { Title = "Erreur"; LoadCommand.ChangeCanExecute(); return; } Title = Poll.Proposition; LoadCommand.ChangeCanExecute(); await ExecuteLoadChoicesCommand(); }
private async Task ExecuteLoadCommand() { if (IsBusy) { return; } IsBusy = true; try { await InitAsync(); } catch (Exception e) { Debug.WriteLine($"Exception in ChildProfileList.ExecuteLoadCommand(): {e}"); } finally { IsBusy = false; } LoadCommand.ChangeCanExecute(); }