public LoadingPage() { page = this; InitializeComponent(); App.Register(this); state.Text = "Hämtar data"; Device.StartTimer(TimeSpan.FromSeconds(1), () => { if (App.CheckInternetConnection()) { DBActions.LoadData(); } else { Crash("Appen kunde inte startas!\n\nSe till att din mobil är" + " ansluten till nätverket."); } return(false); }); }