Beispiel #1
0
        protected virtual void RegisterCore()
        {
            var binder = new MvxFromTextBinder();

            Mvx.RegisterSingleton <IMvxBinder>(binder);
        }
        protected virtual void RegisterBindingDescriptionParser()
        {
            var parser = CreateBindingDescriptionParser();

            Mvx.RegisterSingleton(parser);
        }
 protected virtual void RegisterExpressionParser()
 {
     Mvx.RegisterSingleton <IMvxPropertyExpressionParser>(new MvxPropertyExpressionParser());
 }
Beispiel #4
0
 public App()
 {
     Mvx.RegisterType <IAuthenticateService, AuthenticateService>();
     Mvx.RegisterSingleton <IMvxAppStart>(new MvxAppStart <LogInPageViewModel>());
 }
 public void Load()
 {
     Mvx.RegisterSingleton <IMvxNativeColor>(new MvxStoreColor());
 }
 protected void RegisterAppStart <TViewModel>()
     where TViewModel : IMvxViewModel
 {
     Mvx.RegisterSingleton <IMvxAppStart>(new MvxAppStart <TViewModel>());
 }
Beispiel #7
0
 public void Load()
 {
     Mvx.RegisterSingleton <IMobileCenter>(new Services.MobileCenter());
 }
 public void Load()
 {
     Mvx.RegisterSingleton <IDiskInfoPlugin>(new DiskInfoPlugin());
 }
 public void Load()
 {
     Mvx.RegisterSingleton <IMvxProtectedData>(new MvxStoreProtectedData());
 }
Beispiel #10
0
 public void Load()
 {
     Mvx.RegisterSingleton <ICryptoTools>(new PlatformCryptoTools());
 }
 public override Type GetViewModelToTry()
 {
     Mvx.RegisterSingleton <GameCreation.GameCreationBundle>(new SoloBundle());
     return(typeof(GameCreationViewModel));
 }
Beispiel #12
0
 protected override void InitializeLastChance()
 {
     Mvx.RegisterSingleton <IAsyncStorageService>(new DroidAsyncStorageService());
     base.InitializeLastChance();
 }
Beispiel #13
0
 protected override IMvxApplication CreateApp()
 {
     Mvx.RegisterSingleton <IUserInfo>(new UserInfo(this.ApplicationContext));
     return(new Core.App());
 }
        public void Load()
        {
            Mvx.RegisterSingleton <IGeofencingService>(() => new GeofencingService());

            Mvx.Resolve <IGeofencingService>().Start();
        }
Beispiel #15
0
        protected virtual void InitializeSavedStateConverter()
        {
            var converter = CreateSavedStateConverter();

            Mvx.RegisterSingleton(converter);
        }
Beispiel #16
0
 protected override void InitializeLastChance()
 {
     Mvx.RegisterSingleton <IPlateformService>(new PlateformService());
     Mvx.RegisterSingleton <ICalendarService>(new CalendarService());
     base.InitializeLastChance();
 }
 public void Load()
 {
     Mvx.RegisterSingleton <ISettings>(new MvxWindowsStoreSettings());
 }
Beispiel #18
0
 public void Load()
 {
     Mvx.RegisterSingleton <IMvxNativeColor>(new MvxAndroidColor());
     Mvx.CallbackWhenRegistered <IMvxTargetBindingFactoryRegistry>(RegisterDefaultBindings);
 }
 protected void RegisterAppStart(IMvxAppStart appStart)
 {
     Mvx.RegisterSingleton(appStart);
 }
Beispiel #20
0
        protected override void InitializeLastChance()
        {
            base.InitializeLastChance();

            Mvx.RegisterSingleton <IUserNotificationService>(new UwpUserNotificationService());
        }
Beispiel #21
0
        protected override void InitializeLastChance()
        {
            base.InitializeLastChance();

            Mvx.RegisterSingleton <IApplicationVersionService>(new ApplicationVersionService());
        }
Beispiel #22
0
        protected override void InitializeFirstChance()
        {
            base.InitializeFirstChance();

            Mvx.RegisterSingleton <Core.Services.ILocalizeService>(new Services.LocalizeService());
        }
Beispiel #23
0
 public void Load()
 {
     Mvx.RegisterSingleton <IFileSystem>(new FileSystemImpl());
     Mvx.RegisterSingleton <IFileViewer>(new FileViewerImpl());
 }
Beispiel #24
0
 public void Load()
 {
     Mvx.RegisterSingleton <IMvxThreadSleep>(new MvxThreadSleep());
 }
Beispiel #25
0
 public override void Initialize()
 {
     Mvx.RegisterSingleton <INotificationsSubscriber>(new NotificationsSubscriber());
 }
Beispiel #26
0
 public void Load()
 {
     Mvx.RegisterSingleton <IMvxNativeColor>(new MvxAndroidColor());
     RegisterDefaultBindings();
 }
        protected virtual void RegisterSourcePropertyPathParser()
        {
            var tokeniser = this.CreateSourcePropertyPathParser();

            Mvx.RegisterSingleton <IMvxSourcePropertyPathParser>(tokeniser);
        }
Beispiel #28
0
 protected override void InitializeIoC()
 {
     base.InitializeIoC();
     Mvx.RegisterSingleton <IDialogService>(() => new DialogService());
 }
Beispiel #29
0
		public void Load()
		{
			Mvx.RegisterSingleton<IMvxLocationWatcher>(() => new MvxAndroidFusedLocationWatcher());
		}
Beispiel #30
0
        protected override void InitializeIoC()
        {
            base.InitializeIoC();

            Mvx.RegisterSingleton(() => UserDialogs.Instance);
        }