示例#1
0
 public void Load()
 {
     Mvx.RegisterType <IWatcher, ReadWatcher>();
     Mvx.RegisterType <IReadTask, ReadTask>();
     Mvx.RegisterType <IWriteTask, MvxNFCWriteTask>();
 }
 public void Load()
 {
     Mvx.RegisterType <IUserInteraction, UserInteraction>();
 }
示例#3
0
 protected override void InitializePlatformServices()
 {
     base.InitializePlatformServices();
     Mvx.RegisterType <ITimer, Timer>();
 }
示例#4
0
 public App()
 {
     Mvx.RegisterType <ICalculation, Calculation>();
     Mvx.RegisterSingleton <IMvxAppStart>(new MvxAppStart <TipCalcViewModel>());
 }
示例#5
0
 public void Load()
 {
     Mvx.RegisterType <IMvxSqliteConnectionFactory, TouchSqliteConnectionFactory>();
 }
示例#6
0
 public void Load()
 {
     Mvx.RegisterType <ISettings, WindowsCommonSettings>();
 }
示例#7
0
 public void Load()
 {
     Mvx.RegisterType <IMvxReachability, MvxReachability>();
     Mvx.RegisterType <IMvxRestClient, MvxJsonRestClient>();
     Mvx.RegisterType <IMvxJsonRestClient, MvxJsonRestClient>();
 }
示例#8
0
        protected override IMvxApplication CreateApp()
        {
            Mvx.RegisterType <IDownloader, Downloader>();

            return(new App());
        }
示例#9
0
 public void Load()
 {
     Mvx.RegisterType <IMvxReflectionEx, MvxReflectionEx>();
 }
示例#10
0
 public void Load()
 {
     Mvx.RegisterType <IMvxSoundEffectLoader, MvxSoundEffectObjectLoader>();
 }
示例#11
0
 public override void Initialize()
 {
     RegisterNavigationServiceAppStart <MainViewModel>();
     Mvx.RegisterType <IDataBaseService, DataBaseService>();
 }
示例#12
0
        protected override void InitializeLastChance()
        {
            base.InitializeLastChance();

            Mvx.RegisterType(() => ApplicationContext);
        }
示例#13
0
 protected virtual void InitializeCommandHelper()
 {
     Mvx.RegisterType <IMvxCommandHelper, MvxWeakCommandHelper>();
 }
示例#14
0
 public void Load()
 {
     Mvx.RegisterType <IMvxComposeEmailTask, MvxComposeEmailTask>();
     // note that WindowsStore does not support IMvxComposeEmailTaskEx
 }
示例#15
0
 public void Load()
 {
     Mvx.RegisterType <IMvxWebBrowserTask, MvxWebBrowserTask>();
 }
示例#16
0
 private void InitializeData()
 {
     Mvx.RegisterType <IContactRepository, ContactRepository>();
     Mvx.RegisterType <IBarrierRepository, BarrierRepository>();
     Mvx.RegisterType <ISettingRepository, SettingRepository>();
 }
示例#17
0
 public void Load()
 {
     Mvx.RegisterType <IMvxPictureChooserTask, MvxImagePickerTask>();
     Mvx.CallbackWhenRegistered <IMvxValueConverterRegistry>(RegisterValueConverter);
 }
 public void Load()
 {
     Mvx.RegisterType <ILoginIdentityProviderTask, LoginIdentityProviderTask>();
 }
示例#19
0
 public void Load()
 {
     Mvx.RegisterType <IMessageService, MessageService>();
 }
示例#20
0
 public void Load()
 {
     Mvx.RegisterType(() => CrossBleAdapter.Current);
     Mvx.RegisterType(() => CrossBleAdapter.AdapterScanner);
 }
示例#21
0
 public void Load()
 {
     Mvx.RegisterType <IMvxResourceLoader, MvxStoreResourceLoader>();
 }
示例#22
0
 public void Load()
 {
     Mvx.RegisterType <IMvxFileStore, MvxIsolatedStorageFileStore>();
     Mvx.RegisterType <IMvxFileStoreAsync, MvxIsolatedStorageFileStore>();
 }
示例#23
0
 public void Load()
 {
     Mvx.RegisterType <IMvxFileStore, MvxAndroidFileStore>();
     Mvx.RegisterType <IMvxFileStoreAsync, MvxAndroidFileStore>();
 }
示例#24
0
 public void Load()
 {
     Mvx.RegisterType <IMvxResourceLoader, MvxAndroidResourceLoader>();
 }
示例#25
0
 public void Load()
 {
     Mvx.RegisterType <IMvxPictureChooserTask, MvxPictureChooserTask>();
 }
示例#26
0
 protected override void InitializeCommandHelper()
 {
     // WindowsPhone has to have a strong command helper
     // - see https://github.com/MvvmCross/MvvmCross/issues/623
     Mvx.RegisterType <IMvxCommandHelper, MvxStrongCommandHelper>();
 }
 public void Load()
 {
     Mvx.RegisterType <ISocket, DroidSocket>();
 }
示例#28
0
 public void Load()
 {
     Mvx.RegisterType <IMvxComposeEmailTask, MvxComposeEmailTask>();
     Mvx.RegisterType <IMvxComposeEmailTaskEx, MvxComposeEmailTask>();
 }
示例#29
0
 public void Load()
 {
     Mvx.RegisterType <IMvxShareTask, MvxShareTask>();
 }
示例#30
0
 public void Load()
 {
     Mvx.RegisterType <IMvxResourceLoader, MvxTouchResourceLoader>();
 }