コード例 #1
0
        protected override void OnCreate(Bundle bundle)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(bundle);

            CustomDependencyService.Register <PathService>();
            CustomDependencyService.Register <IRawSQLitePlatformService, RawSQLitePlatformService>();

            global::Xamarin.Forms.Forms.Init(this, bundle);
            LoadApplication(new App());
        }
コード例 #2
0
 private void ChangeDatabaseServiceType(Type targetType)
 {
     CustomDependencyService.Register(targetType);
     App.ChangePresented();
 }