Exemplo n.º 1
0
        private async Task GetDb()
        {
            var database = new SQLiteMethods(DependencyService.Get <ISQLiteDb>());
            await Task.Delay(1000);

            BindingContext = new MainViewModel(database);
        }
        public StartPage()
        {
            InitializeComponent();

            var pageService = new PageService();
            var database    = new SQLiteMethods(DependencyService.Get <ISQLiteDb>());

            BindingContext = new MainViewModel(pageService, database);
        }