Пример #1
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            global::Xamarin.Forms.Forms.Init();
            string folderPath = System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal);
            string dbPath     = Path.Combine(folderPath, "wineot.sqlite3");

            SQLiteService.SetupDatabase(dbPath, new  SQLite.Net.Platform.XamarinIOS.SQLitePlatformIOS());
            Console.WriteLine(dbPath);
            LoadApplication(new App());
            return(base.FinishedLaunching(app, options));
        }
Пример #2
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            global::Xamarin.Forms.Forms.Init(this, bundle);
            string folderPath = System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal);
            string dbPath     = Path.Combine(folderPath, "wineot.sqlite3");

            SQLiteService.SetupDatabase(dbPath, new  SQLite.Net.Platform.XamarinAndroid.SQLitePlatformAndroid());
            Console.WriteLine(dbPath);
            SvgImageRenderer.Init();

            LoadApplication(new App());
        }