Exemple #1
0
		/// <summary>
		/// Initializes a new instance of the <see cref="Test.NewSolution.App"/> class.
		/// </summary>
		/// <param name="typeResolveProvider">Type resolve provider.</param>
		public MvvmApp (IMvvmPlatform platformApp)
		{	
			// Save static for ease of access
			Current = this;

			// Register container
			Container.Initialize (CreateContainer());

			// Set up presenter and view container
			Container.RegisterSingleton<IViewContainer, DefaultViewContainer>();
			Container.RegisterSingleton<IPresenter, DefaultPresenter> ();
			Container.RegisterSingleton<IActivityIndicator, DefaultActivityIndicator> ();

			// Initialize platform app
			platformApp.Initialize();

			// Set up services
			RegisterServices();

			// Set up views
			RegisterViews();

			// Set main page
			Presenter.SetMainPage (GetMainPage());
		}
Exemple #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Test.NewSolution.App"/> class.
        /// </summary>
        /// <param name="typeResolveProvider">Type resolve provider.</param>
        public MvvmApp(IMvvmPlatform platformApp)
        {
            // Save static for ease of access
            Current = this;

            // Register container
            Container.Initialize(CreateContainer());

            // Set up presenter and view container
            Container.RegisterSingleton <IViewContainer, DefaultViewContainer>();
            Container.RegisterSingleton <IPresenter, DefaultPresenter> ();
            Container.RegisterSingleton <IActivityIndicator, DefaultActivityIndicator> ();

            // Initialize platform app
            platformApp.Initialize();

            // Set up services
            RegisterServices();

            // Set up views
            RegisterViews();

            // Set main page
            Presenter.SetMainPage(GetMainPage());
        }