示例#1
0
        protected override void Configure()
        {
            _container = new WinRTContainer();
            _container.RegisterWinRTServices();

            _container.UseShell();
            _container.UseApplets();
            _eventAggregator = _container.GetInstance<IEventAggregator>();
        }
示例#2
0
        protected override void Configure()
        {
            var config = LoadConfig();
            _container = new WinRTContainer();
            _container.RegisterWinRTServices();

            _container.UseShell();
            _container.UseAudio();
            _container.UsePlaylist();
            _container.UsePlugins()
                .AddLastFm(config.LastFmApiKey)
                .AddLocalLyrics();
            _eventAggregator = _container.GetInstance<IEventAggregator>();
            ViewModelBinder.ApplyConventionsByDefault = false;
        }
示例#3
0
        protected override void Configure()
        {
            //var config = LoadConfig();
            _container = new WinRTContainer();
            _container.RegisterWinRTServices();

            _container.UseShell();
            _container.UseResource()
                .UseResourceManager(new Uri("ms-appx:///Assets/Config/UIArt.json"),
                                    new Uri("ms-appx:///Assets/Config/UIAudio.json"),
                                    new Uri("ms-appx:///Assets/Config/Shaders.json"),
                                    new Uri("ms-appx:///Assets/Config/TileSets.json"),
                                    new Uri("ms-appx:///Assets/Config/Maps.json"),
                                    new Uri("ms-appx:///Assets/Config/Sprites/Infantry.json"),
                                    new Uri("ms-appx:///Assets/Config/Art/Infantry.json"))
                .UseRulesLoader(new Uri("ms-appx:///Assets/Config/Rules/Infantry.json"));
            _container.UseAudio();
            _eventAggregator = _container.GetInstance<IEventAggregator>();
            ViewModelBinder.ApplyConventionsByDefault = false;
        }