public App() { // The root page of your application ISQLiteConnection connection = DependencyService.Get <ISQLiteConnection>(); if (connection.GetConnection() != null) { Debug.WriteLine("SQLite connection is ready!"); } MainPage = new ContentPage { Content = new StackLayout { VerticalOptions = LayoutOptions.Center, Children = { new Label { XAlign = TextAlignment.Center, Text = connection.GetDataBasePath() } } } }; }
public App() { // Główna strona aplikacji ISQLiteConnection connection = DependencyService.Get <ISQLiteConnection>(); if (connection.GetConnection() != null) { Debug.WriteLine("Połączenie SQLite gotowe!"); } MainPage = new ContentPage { Content = new StackLayout { VerticalOptions = LayoutOptions.Center, Children = { new Label { HorizontalTextAlignment = TextAlignment.Center, Text = connection.GetDataBasePath() } } } }; }