Inheritance: MvxApplicationObject, IMvxStartNavigation
Esempio n. 1
0
        public App()
        {
            Cirrious.MvvmCross.Plugins.File.PluginLoader.Instance.EnsureLoaded();
            Cirrious.MvvmCross.Plugins.ResourceLoader.PluginLoader.Instance.EnsureLoaded();
            Cirrious.MvvmCross.Plugins.Sphero.PluginLoader.Instance.EnsureLoaded();
            Cirrious.MvvmCross.Plugins.XamPhotos.PluginLoader.Instance.EnsureLoaded();
            Cirrious.MvvmCross.Plugins.Share.PluginLoader.Instance.EnsureLoaded();

            // register the list service
            var spheroListService = new SpheroListService();
            this.RegisterServiceInstance<ISpheroListService>(spheroListService);

            // register the speed service
            var spheroSpeedService = new SpheroSpeedService();
            this.RegisterServiceInstance<ISpheroSpeedService>(spheroSpeedService);

            // set the start object
            var startApplicationObject = new StartApplicationObject();
            this.RegisterServiceInstance<IMvxStartNavigation>(startApplicationObject);
        }
Esempio n. 2
0
        public App()
        {
            Cirrious.MvvmCross.Plugins.File.PluginLoader.Instance.EnsureLoaded();
            Cirrious.MvvmCross.Plugins.ResourceLoader.PluginLoader.Instance.EnsureLoaded();
            Cirrious.MvvmCross.Plugins.Sphero.PluginLoader.Instance.EnsureLoaded();
            Cirrious.MvvmCross.Plugins.XamPhotos.PluginLoader.Instance.EnsureLoaded();
            Cirrious.MvvmCross.Plugins.Share.PluginLoader.Instance.EnsureLoaded();

            // register the list service
            var spheroListService = new SpheroListService();

            this.RegisterServiceInstance <ISpheroListService>(spheroListService);

            // register the speed service
            var spheroSpeedService = new SpheroSpeedService();

            this.RegisterServiceInstance <ISpheroSpeedService>(spheroSpeedService);

            // set the start object
            var startApplicationObject = new StartApplicationObject();

            this.RegisterServiceInstance <IMvxStartNavigation>(startApplicationObject);
        }