Ejemplo n.º 1
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            global::Xamarin.Forms.Forms.Init();

            // init database
            string folder = Environment.GetFolderPath(Environment.SpecialFolder.Personal);

            AccessorBase.SetPath(folder);
            ResourceAccessFactory Factory = new ResourceAccessFactory();
            var noteAccessor = Factory.Create <INoteAccessor>();

            noteAccessor.Setup(false);

            LoadApplication(new App());

            return(base.FinishedLaunching(app, options));
        }
Ejemplo n.º 2
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            // init database
            string folder = System.Environment.GetFolderPath(System.Environment.SpecialFolder.MyDocuments);

            AccessorBase.SetPath(folder);
            ResourceAccessFactory Factory = new ResourceAccessFactory();
            var noteAccessor = Factory.Create <INoteAccessor>();

            noteAccessor.Setup(false);

            global::Xamarin.Forms.Forms.Init(this, bundle);

            LoadApplication(new App());
        }