async void setup() { if (await LogBook.UpdateLogList()) { RenderPage(); } else { Button reload = new Button(); reload.Text = Strings.Reload; reload.Style = (Style)Application.Current.Resources["PrimaryButtonStyle"]; reload.Clicked += Reload_Clicked; Label errorMessage = new Label(); errorMessage.Text = Strings.ErrorLoading; errorMessage.Style = (Style)Application.Current.Resources["PrimaryLabelStyle"]; View.Children.Add(errorMessage); View.Children.Add(reload); } }