Exemplo n.º 1
0
        protected virtual void RegisterCore()
        {
            var binder = new MvxFromTextBinder();

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

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

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

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

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

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

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

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

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