/// <summary>
        /// Initializes the Windows Phone specific part of the plugin.
        /// </summary>
        public void Initialize( IWindowsPhoneNavigationService navigationService )
        {
            navigationService.Bind<MainViewModel>( "/PocketCampus.Directory.WindowsPhone;component/Views/MainView.xaml" );
            navigationService.Bind<PersonViewModel>( "/PocketCampus.Directory.WindowsPhone;component/Views/PersonView.xaml" );

            Container.Bind<IContactsService, ContactsService>();
        }
Exemple #2
0
        /// <summary>
        /// Initializes the Windows Phone specific part of the plugin.
        /// </summary>
        public void Initialize(IWindowsPhoneNavigationService navigationService)
        {
            navigationService.Bind <MainViewModel>("/PocketCampus.Map.WindowsPhone;component/Views/MainView.xaml");
            navigationService.Bind <SettingsViewModel>("/PocketCampus.Map.WindowsPhone;component/Views/SettingsView.xaml");

            Container.Bind <IPluginSettings, PluginSettings>();
        }
Exemple #3
0
        /// <summary>
        /// Initializes the Windows Phone specific part of the plugin.
        /// </summary>
        public void Initialize(IWindowsPhoneNavigationService navigationService)
        {
            navigationService.Bind <MainViewModel>("/PocketCampus.Directory.WindowsPhone;component/Views/MainView.xaml");
            navigationService.Bind <PersonViewModel>("/PocketCampus.Directory.WindowsPhone;component/Views/PersonView.xaml");

            Container.Bind <IContactsService, ContactsService>();
        }
        /// <summary>
        /// Initializes the Windows Phone specific part of the plugin.
        /// </summary>
        public void Initialize( IWindowsPhoneNavigationService navigationService )
        {
            navigationService.Bind<MainViewModel>( "/PocketCampus.Map.WindowsPhone;component/Views/MainView.xaml" );
            navigationService.Bind<SettingsViewModel>( "/PocketCampus.Map.WindowsPhone;component/Views/SettingsView.xaml" );

            Container.Bind<IPluginSettings, PluginSettings>();
        }
        /// <summary>
        /// Initializes the Windows Phone specific part of the plugin.
        /// </summary>
        public void Initialize(IWindowsPhoneNavigationService navigationService)
        {
            navigationService.Bind <MainViewModel>("/PocketCampus.Moodle.WindowsPhone;component/Views/MainView.xaml");
            navigationService.Bind <CourseViewModel>("/PocketCampus.Moodle.WindowsPhone;component/Views/CourseView.xaml");

            Container.Bind <IMoodleDownloader, MoodleDownloader>();
            Container.Bind <IFileStorage, FileStorage>();
        }
        /// <summary>
        /// Initializes the Windows Phone specific part of the plugin.
        /// </summary>
        public void Initialize( IWindowsPhoneNavigationService navigationService )
        {
            navigationService.Bind<MainViewModel>( "/PocketCampus.Moodle.WindowsPhone;component/Views/MainView.xaml" );
            navigationService.Bind<CourseViewModel>( "/PocketCampus.Moodle.WindowsPhone;component/Views/CourseView.xaml" );

            Container.Bind<IMoodleDownloader, MoodleDownloader>();
            Container.Bind<IFileStorage, FileStorage>();
        }
        /// <summary>
        /// Initializes the Windows Phone specific part of the plugin.
        /// </summary>
        public void Initialize(IWindowsPhoneNavigationService navigationService)
        {
            navigationService.Bind <EventPoolViewModel>("/PocketCampus.Events.WindowsPhone;component/Views/EventPoolView.xaml");
            navigationService.Bind <EventItemViewModel>("/PocketCampus.Events.WindowsPhone;component/Views/EventItemView.xaml");
            navigationService.Bind <SettingsViewModel>("/PocketCampus.Events.WindowsPhone;component/Views/SettingsView.xaml");
            navigationService.Bind <CategoryFilterViewModel>("/PocketCampus.Events.WindowsPhone;component/Views/CategoryFilterView.xaml");
            navigationService.Bind <TagFilterViewModel>("/PocketCampus.Events.WindowsPhone;component/Views/TagFilterView.xaml");

            Container.Bind <IEmailPrompt, EmailPrompt>();
            Container.Bind <ICodeScanner, CodeScanner>();
        }
        /// <summary>
        /// Initializes the Windows Phone specific part of the plugin.
        /// </summary>
        public void Initialize( IWindowsPhoneNavigationService navigationService )
        {
            navigationService.Bind<EventPoolViewModel>( "/PocketCampus.Events.WindowsPhone;component/Views/EventPoolView.xaml" );
            navigationService.Bind<EventItemViewModel>( "/PocketCampus.Events.WindowsPhone;component/Views/EventItemView.xaml" );
            navigationService.Bind<SettingsViewModel>( "/PocketCampus.Events.WindowsPhone;component/Views/SettingsView.xaml" );
            navigationService.Bind<CategoryFilterViewModel>( "/PocketCampus.Events.WindowsPhone;component/Views/CategoryFilterView.xaml" );
            navigationService.Bind<TagFilterViewModel>( "/PocketCampus.Events.WindowsPhone;component/Views/TagFilterView.xaml" );

            Container.Bind<IEmailPrompt, EmailPrompt>();
            Container.Bind<ICodeScanner, CodeScanner>();
        }
Exemple #9
0
        /// <summary>
        /// Creates a new App.
        /// </summary>
        public App()
        {
            InitializeComponent();

            // Services
            _navigationService = Container.Bind<IWindowsPhoneNavigationService, WindowsPhoneNavigationService>();
            Container.Bind<ISettingsStorage, WindowsPhoneSettingsStorage>();
            Container.Bind<IHttpClient, HttpClient>();
            Container.Bind<IBrowserService, BrowserService>();
            Container.Bind<IEmailService, EmailService>();
            Container.Bind<IPhoneService, PhoneService>();
            Container.Bind<ILocationService, LocationService>();
            Container.Bind<ITileService, TileService>();
            Container.Bind<IDeviceIdentifier, DeviceIdentifier>();
            Container.Bind<IRatingService, RatingService>();
            Container.Bind<IDataCache, WindowsPhoneDataCache>();
            Container.Bind<ICredentialsStorage, WindowsPhoneCredentialsStorage>();
            _pluginLoader = Container.Bind<IPluginLoader, PluginLoader>();
            _logger = Container.Bind<Logger, GoogleAnalyticsLogger>();

            // Common part of plugins & services initialization
            AppInitializer.Initialize( _pluginLoader, _navigationService );

            // View-ViewModels bindings for Main
            _navigationService.Bind<MainViewModel>( "/Views/MainView.xaml" );
            _navigationService.Bind<SettingsViewModel>( "/Views/SettingsView.xaml" );
            _navigationService.Bind<AboutViewModel>( "/Views/AboutView.xaml" );

            // URI mapping
            LauncherEx.RegisterProtocol( PocketCampusProtocol, NavigateToCustomUri );

            // WP-specific part of plugin initialization
            _plugins = _pluginLoader.GetPlugins().Cast<IWindowsPhonePlugin>().ToArray();
            foreach ( var plugin in _plugins )
            {
                plugin.Initialize( _navigationService );
            }

            // Debug settings
            DebugSettings.UserIdleDetectionMode = IdleDetectionMode.Disabled;

            // Theme initialization
            ThemeManager.OverrideOptions = ThemeManagerOverrideOptions.ApplicationBarColors;
            ThemeManager.ToLightTheme();
            ThemeManager.SetAccentColor( (Color) Resources["AppAccentColor"] );
        }
Exemple #10
0
        /// <summary>
        /// Creates a new App.
        /// </summary>
        public App()
        {
            InitializeComponent();

            // Services
            _navigationService = Container.Bind <IWindowsPhoneNavigationService, WindowsPhoneNavigationService>();
            Container.Bind <ISettingsStorage, WindowsPhoneSettingsStorage>();
            Container.Bind <IHttpClient, HttpClient>();
            Container.Bind <IBrowserService, BrowserService>();
            Container.Bind <IEmailService, EmailService>();
            Container.Bind <IPhoneService, PhoneService>();
            Container.Bind <ILocationService, LocationService>();
            Container.Bind <ITileService, TileService>();
            Container.Bind <IDeviceIdentifier, DeviceIdentifier>();
            Container.Bind <IRatingService, RatingService>();
            Container.Bind <IDataCache, WindowsPhoneDataCache>();
            Container.Bind <ICredentialsStorage, WindowsPhoneCredentialsStorage>();
            _pluginLoader = Container.Bind <IPluginLoader, PluginLoader>();
            _logger       = Container.Bind <Logger, GoogleAnalyticsLogger>();

            // Common part of plugins & services initialization
            AppInitializer.Initialize(_pluginLoader, _navigationService);

            // View-ViewModels bindings for Main
            _navigationService.Bind <MainViewModel>("/Views/MainView.xaml");
            _navigationService.Bind <SettingsViewModel>("/Views/SettingsView.xaml");
            _navigationService.Bind <AboutViewModel>("/Views/AboutView.xaml");

            // URI mapping
            LauncherEx.RegisterProtocol(PocketCampusProtocol, NavigateToCustomUri);

            // WP-specific part of plugin initialization
            _plugins = _pluginLoader.GetPlugins().Cast <IWindowsPhonePlugin>().ToArray();
            foreach (var plugin in _plugins)
            {
                plugin.Initialize(_navigationService);
            }

            // Debug settings
            DebugSettings.UserIdleDetectionMode = IdleDetectionMode.Disabled;

            // Theme initialization
            ThemeManager.OverrideOptions = ThemeManagerOverrideOptions.ApplicationBarColors;
            ThemeManager.ToLightTheme();
            ThemeManager.SetAccentColor((Color)Resources["AppAccentColor"]);
        }
 /// <summary>
 /// Initializes the Windows Phone specific part of the plugin.
 /// </summary>
 public void Initialize( IWindowsPhoneNavigationService navigationService )
 {
     navigationService.Bind<MainViewModel>( "/PocketCampus.News.WindowsPhone;component/Views/MainView.xaml" );
     navigationService.Bind<FeedItemViewModel>( "/PocketCampus.News.WindowsPhone;component/Views/FeedItemView.xaml" );
 }
Exemple #12
0
 /// <summary>
 /// Initializes the Windows Phone specific part of the plugin.
 /// </summary>
 public void Initialize(IWindowsPhoneNavigationService navigationService)
 {
     navigationService.Bind <MainViewModel>("/PocketCampus.IsAcademia.WindowsPhone;component/Views/MainView.xaml");
 }
 /// <summary>
 /// Initializes the Windows Phone specific part of the plugin.
 /// </summary>
 public void Initialize( IWindowsPhoneNavigationService navigationService )
 {
     navigationService.Bind<MainViewModel>( "/PocketCampus.Food.WindowsPhone;component/Views/MainView.xaml" );
     navigationService.Bind<RatingViewModel>( "/PocketCampus.Food.WindowsPhone;component/Views/RatingView.xaml" );
     navigationService.Bind<SettingsViewModel>( "/PocketCampus.Food.WindowsPhone;component/Views/SettingsView.xaml" );
 }
Exemple #14
0
 /// <summary>
 /// Initializes the Windows Phone specific part of the plugin.
 /// </summary>
 public void Initialize(IWindowsPhoneNavigationService navigationService)
 {
     navigationService.Bind <MainViewModel>("/PocketCampus.Food.WindowsPhone;component/Views/MainView.xaml");
     navigationService.Bind <RatingViewModel>("/PocketCampus.Food.WindowsPhone;component/Views/RatingView.xaml");
     navigationService.Bind <SettingsViewModel>("/PocketCampus.Food.WindowsPhone;component/Views/SettingsView.xaml");
 }
 /// <summary>
 /// Initializes the Windows Phone specific part of the plugin.
 /// </summary>
 public void Initialize( IWindowsPhoneNavigationService navigationService )
 {
     navigationService.Bind<MainViewModel>( "/PocketCampus.Satellite.WindowsPhone;component/Views/MainView.xaml" );
 }
 /// <summary>
 /// Initializes the Windows Phone specific part of the plugin.
 /// </summary>
 public void Initialize(IWindowsPhoneNavigationService navigationService)
 {
     navigationService.Bind <MainViewModel>("/PocketCampus.News.WindowsPhone;component/Views/MainView.xaml");
     navigationService.Bind <FeedItemViewModel>("/PocketCampus.News.WindowsPhone;component/Views/FeedItemView.xaml");
 }