// // This method is invoked when the application has loaded and is ready to run. In this // method you should instantiate the window, load the UI into it and then make the window // visible. // // You have 17 seconds to return from this method, or iOS will terminate your application. // public override bool FinishedLaunching(UIApplication app, NSDictionary options) { var dbPath = Path.Combine(System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal), "ConfidenceBuilderDB.db"); // var utilizatoriRepository = new UtilizatoriRepository(dbPath); var GenRutineRepository = new GeneratorRutineRepository(dbPath); global::Xamarin.Forms.Forms.Init(); // LoadApplication(new App(utilizatoriRepository)); LoadApplication(new App(GenRutineRepository)); return(base.FinishedLaunching(app, options)); }
protected override void OnCreate(Bundle savedInstanceState) { TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; string dbp = Utils.GetLocalFilePath("ConfidenceBuilderDB.db"); var dbPath = Path.Combine(System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal), "ConfidenceBuilderDB.db"); // var utilizatoriRepository = new UtilizatoriRepository(dbp); var rutineRepository = new GeneratorRutineRepository(dbp); base.OnCreate(savedInstanceState); global::Xamarin.Forms.Forms.Init(this, savedInstanceState); LoadApplication(new App(rutineRepository)); //LoadApplication(new App(utilizatoriRepository)); }