protected override void RegisterViews(IViewFactory viewFactory)
 {
     viewFactory.Register<LoginViewModel,Login>();
     viewFactory.Register<RegistroViewModel, Registro>();
     viewFactory.Register<PrincipalViewModel, Principal>();
     viewFactory.Register<NuevoBlocViewModel,NuevoBlocView>();
 }
 public static void RegisterViews(IViewFactory viewFactory)
 {
     viewFactory.Register <MainViewModel, MainPage>();
     viewFactory.Register <UserViewModel, ProfilePage>();
     viewFactory.Register <NotificationViewModel, NotificationPage>();
     viewFactory.Register <FunViewModel, FunPage>();
 }
Exemplo n.º 3
0
 protected override void RegisterViews(IViewFactory viewFactory)
 {
     viewFactory.Register <LoginViewModel, Login>();
     viewFactory.Register <RegistroViewModel, Registro>();
     viewFactory.Register <PrincipalViewModel, Principal>();
     viewFactory.Register <NuevoBlocViewModel, NuevoBlocView>();
 }
Exemplo n.º 4
0
 protected override void RegisterViews(IViewFactory viewFactory)
 {
     viewFactory.Register<LoginViewModel, Login>();
     viewFactory.Register<RegisterViewModel, Register>();
     viewFactory.Register<PrincipalViewModel, Principal>();
     viewFactory.Register<ListadoViewModel,Listado>();
     viewFactory.Register<MainViewModel,Main>();
 }
Exemplo n.º 5
0
 private void RegisterViews(IViewFactory viewFactory)
 {
     viewFactory.Register <ItemsViewModel, ItemsPage>();
     viewFactory.Register <AboutViewModel, AboutPage>();
     viewFactory.Register <ItemDetailViewModel, ItemDetailPage>();
     viewFactory.Register <NewItemsViewModel, NewItemPage>();
     viewFactory.Register <MainViewModel, MainPage>();
 }
 protected override void RegisterViews(IViewFactory viewFactory)
 {
     viewFactory.Register <EventsViewModel, EventsView>();
     viewFactory.Register <EventViewModel, EventView>();
     viewFactory.Register <MasterViewModel, MasterView>();
     viewFactory.Register <MyEventsViewModel, MyEventsView>();
     viewFactory.Register <SettingsViewModel, SettingsView>();
 }
Exemplo n.º 7
0
 protected override void RegisterViews(IViewFactory viewFactory)
 {
     viewFactory.Register<LoginViewModel, LoginPage>();
     viewFactory.Register<LandingPageViewModel, LandingPage>();
     viewFactory.Register<OrderFormViewModel, OrderFormPage>();
     viewFactory.Register<RestaurantViewModel, RestaurantPage>();
     viewFactory.Register<MenuViewModel, MenuPage>();
 }
Exemplo n.º 8
0
 protected override void RegisterViews(IViewFactory viewFactory)
 {
     viewFactory.Register<LoginViewModel,LoginView>();
     viewFactory.Register<GruposViewModel,GrupoView>();
     viewFactory.Register<NewGrupoViewModel,NewGrupoView>();
     viewFactory.Register<TareasViewModel,TareasView>();
     viewFactory.Register<NuevaTareaViewModel,NuevaTareaView>();
 }
Exemplo n.º 9
0
 protected override void RegisterViews(IViewFactory viewFactory)
 {
     //Aquí registras los viewmodel y los view, relcionandolos
     //Esta parte de código dentro de la arquitectura, que es toda igual, difiere según el proyecto.
     viewFactory.Register<LoginViewModel, Login>();
     viewFactory.Register<RegistroViewModel, Registro>();
     viewFactory.Register<PrincipalViewModel, Principal>();
     viewFactory.Register<NuevoBlockViewModel, NuevoBlockView>();
 }
Exemplo n.º 10
0
 protected override void RegisterViews(IViewFactory viewFactory)
 {
     //Aquí registras los viewmodel y los view, relcionandolos
     //Esta parte de código dentro de la arquitectura, que es toda igual, difiere según el proyecto.
     viewFactory.Register <LoginViewModel, Login>();
     viewFactory.Register <RegistroViewModel, Registro>();
     viewFactory.Register <PrincipalViewModel, Principal>();
     viewFactory.Register <NuevoBlockViewModel, NuevoBlockView>();
 }
Exemplo n.º 11
0
 protected override void RegisterViews(IViewFactory viewFactory)
 {
     //Aquí registras los viewmodel y los view, relcionandolos
     //Esta parte de código dentro de la arquitectura, que es toda igual, difiere según el proyecto.
     viewFactory.Register<LoginViewModel, Login>();
     viewFactory.Register<RegistroViewModel, Registro>();
     viewFactory.Register<PrincipalViewModel, Principal>();
     viewFactory.Register<BuscarContactoViewModel, Contactos>();
     viewFactory.Register<EnviarMensajeViewModel, Mensajes>();
 }
Exemplo n.º 12
0
        private void ConfigureViews(IViewFactory viewFactory, IServiceCollection services)
        {
            services.AddTransient <TestEnvironmentPage>();
            services.AddTransient <TestEnvironmentViewModel>();
            viewFactory.RegisterStartupPage <TestEnvironmentViewModel, TestEnvironmentPage>();

            services.AddTransient <ParameterManager>();
            viewFactory.Register <ParameterManagerViewModel, ParameterManager>();

            services.AddTransient <ParameterSettingsWindow>();
            viewFactory.Register <ParameterSettingsWindowViewModel, ParameterSettingsWindow>();

            services.AddTransient <RandomNumberView>();
            viewFactory.Register <RandomNumberParameterSettings, RandomNumberView>();

            services.AddTransient <RandomDateRangeView>();
            viewFactory.Register <RandomDateRangeParameterSettings, RandomDateRangeView>();

            services.AddTransient <MssqlParameterView>();
            viewFactory.Register <MssqlQueryParameterSettings, MssqlParameterView>();

            services.AddTransient <ConnectionWindow>();
            viewFactory.Register <AddEditConnectionViewModel, ConnectionWindow>();

            services.AddTransient <ConnectionManager>();
            viewFactory.Register <ConnectionManagerViewModel, ConnectionManager>();

            services.AddTransient <QueryExecutionDetailsWindow>();
            viewFactory.Register <QueryExecutionDetailsViewModel, QueryExecutionDetailsWindow>();

            services.AddTransient <InvalidQueryStressTestWindow>();
            viewFactory.Register <InvalidQueryStressTestViewModel, InvalidQueryStressTestWindow>();
        }
Exemplo n.º 13
0
 protected override void RegisterViews(IViewFactory viewFactory)
 {
     viewFactory.Register<LoginViewModel,LoginView>();
     viewFactory.Register<AltaViewModel,AltaView>();
     viewFactory.Register<MainViewModel,MainView>();
     viewFactory.Register<UsuariosViewModel,UsuariosView>();
     viewFactory.Register<MensajesViewModel,MensajesView>();
     viewFactory.Register<DetalleViewModel,DetalleView>();
     viewFactory.Register<SendViewModel,SendView>();
     viewFactory.Register<DetalleMensajeViewModel,DetalleMensajeView>();
     viewFactory.Register<ContactosViewModel,ContactosView>();
     viewFactory.Register<MensajesEnviadosViewModel,MensajesEnviadosView>();
 }
Exemplo n.º 14
0
        protected override void RegisterViews(IViewFactory viewFactory)
        {
            #region General

            viewFactory.Register <LoginViewModel, Login>();

            viewFactory.Register <RegistroViewModel, Registro>();

            viewFactory.Register <PrincipalViewModel, Principal>();

            #endregion


            #region Contactos

            viewFactory.Register <AddContactoViewModel, AddContacto>();

            viewFactory.Register <ContactosViewModel, Contactos>();

            viewFactory.Register <EnviarMensajeViewModel, EnviarMensaje>();

            #endregion


            #region Mensajes

            viewFactory.Register <DetalleMensajeViewModel, DetalleMensaje>();

            viewFactory.Register <MisMensajesViewModel, MisMensajes>();

            #endregion
        }
Exemplo n.º 15
0
 protected override void RegisterViews(IViewFactory viewFactory)
 {
     viewFactory.Register<LoginViewModel, Login>();
     viewFactory.Register<RegistroViewModel, Registro>();
     viewFactory.Register<HomeViewModel, Home>();
     viewFactory.Register<UsuariosListadoViewModel, ListadoUsuarios>();
     viewFactory.Register<UsuarioDetalleViewModel, UsuarioDetalle>();
     viewFactory.Register<MensajesRecibidosViewModel, MensajesRecibidos>();
     viewFactory.Register<MensajesEnviadosViewModel, MensajesEnviados>();
     viewFactory.Register<MensajeNuevoViewModel, MensajeNuevo>();
     viewFactory.Register<MensajeDetalleViewModel, MensajeDetalle>();
 }
Exemplo n.º 16
0
 protected override void RegisterViews(IViewFactory viewFactory)
 {
     viewFactory.Register<LoginViewModel, LoginView>();
     viewFactory.Register<AltaViewModel, Alta>();
     viewFactory.Register<ContactosViewModel, ContactosView>();                viewFactory.Register<PrincipalViewModel,PrincipalView>();
     viewFactory.Register <AddContactoViewModel,AddContactoView> ();
     viewFactory.Register <EnviarMensajeViewModel,EnviarMensajeView> ();
     viewFactory.Register <MisMensajesViewModel,MisMensajesView> ();
     viewFactory.Register <DetalleMensajeViewModel,DetalleMensajeView> ();
 }
Exemplo n.º 17
0
 protected override void RegisterViews(IViewFactory viewFactory)
 {
     viewFactory.Register <LoginViewModel, LoginView>();
     viewFactory.Register <AltaViewModel, Alta>();
     viewFactory.Register <PrincipalViewModel, PrincipalView>();
     viewFactory.Register <AddContactosViewModel, AddContactosView>();
     viewFactory.Register <ContactosViewModel, ContactoView>();
     viewFactory.Register <EnviarMensajeViewModel, EnviarMensajeView>();
     viewFactory.Register <DetalleMensajeViewModel, DetalleMensajeView>();
     viewFactory.Register <MisMensajesViewModel, MisMensajesView>();
 }
Exemplo n.º 18
0
        protected override void InitializeViewFactory(IViewFactory viewFactory)
        {
            base.InitializeViewFactory(viewFactory);

            viewFactory.Register<ActionSheetTestPage, ActionSheetTestViewModel>();
            viewFactory.Register<CaptureImagePage, CaptureImagePageViewModel>();
            viewFactory.Register<ExtendedListViewPage, ExtendedListViewPageViewModel>();
            viewFactory.Register<ViewImagePage, ViewImagePageViewModel>();
            viewFactory.Register<BackgroundImagePage, BackgroundImagePageViewModel>();
            viewFactory.Register<ActivityIndicatorTestView, ActivityIndicatorTestViewModel>();
            viewFactory.Register<GridViewPage, GridViewPageViewModel>();
        }
 /// <summary>
 /// Registers all of the views with their view models.  This allows for view model navigation.
 /// </summary>
 /// <param name="viewFactory">IViewFactory</param>
 protected override void RegisterViews(IViewFactory viewFactory)
 {
     viewFactory.Register <MainViewModel, MainPage>();
     viewFactory.Register <SettingsViewModel, SettingsPage>();
     viewFactory.Register <AboutViewModel, AboutPage>();
     viewFactory.Register <SeedListViewModel, SeedListPage>();
     viewFactory.Register <SeedTypeViewModel, SeedTypePage>();
     viewFactory.Register <AddNewSeedTypeViewModel, AddNewSeedTypePage>();
 }
Exemplo n.º 20
0
 protected override void BindViewModelsToViews(IViewFactory viewFactory)
 {
     viewFactory.Register <LoginViewModel, LoginView>();
     viewFactory.Register <HomeViewModel, HomeView>();
     viewFactory.Register <EventToCommandViewModel, EventToCommandView>();
     viewFactory.Register <TemplateSelectorViewModel, TemplateSelectorView>();
     viewFactory.Register <MessengerViewModel, MessengerView>();
     viewFactory.Register <DialogViewModel, DialogView>();
 }
Exemplo n.º 21
0
 private void RegisterViews(IViewFactory viewFactory)
 {
     viewFactory.Register <MainViewModel, MainView>();
     viewFactory.Register <CourseViewModel, CourseView>();
     viewFactory.Register <ChapterViewModel, ChapterView>();
     viewFactory.Register <McqViewModel, McqView>();
     viewFactory.Register <ClozeViewModel, ClozeView>();
     viewFactory.Register <ScoreViewModel, ScoreView>();
 }
Exemplo n.º 22
0
 protected override void RegisterViews(IViewFactory viewFactory)
 {
     viewFactory.Register<LoginViewModel, LoginView>();
     viewFactory.Register<HomeViewModel, HomeView>();
     viewFactory.Register<NuevoGrupoViewModel, NuevoGrupoView>();
     viewFactory.Register<ListadoTareasViewModel, ListadoTareasView>();
     viewFactory.Register<NuevaTareaViewModel, NuevaTareaView>();
     viewFactory.Register<DetalleTareaViewModel, DetalleTareaView>();
 }
Exemplo n.º 23
0
 private void RegisterViews(IViewFactory viewFactory)
 {
     viewFactory.Register <MainViewModel, MainView>();
     viewFactory.Register <MainDetailViewModel, MainDetail>();
     viewFactory.Register <NavigationMenuViewModel, NavigationMenuView>();
     viewFactory.Register <LoginViewModel, LoginView>();
     viewFactory.Register <GearListViewModel, GearListView>();
     viewFactory.Register <TrackingHistoryListViewModel, TrackingHistoryListView>();
 }
Exemplo n.º 24
0
        public void Build()
        {
            var container = _builder.Build();


            _viewFactory = container.Resolve <IViewFactory>();

            if (_viewViewModelMaching.Count > 0)
            {
                foreach (var k in _viewViewModelMaching.Keys)
                {
                    _viewFactory.Register(_viewViewModelMaching[k], k);
                }
            }

            if (_startPageInstance != null)
            {
                _app.MainPage = _startPageInstance;
            }

            else if (_menuPageViewModelType == null && _startPageViewModelType != null)
            {
                var principalPage = _viewFactory.Resolve(_startPageViewModelType);
                _app.MainPage = new NavigationPage(principalPage);
            }


            else if (_menuPageViewModelType != null) //if _menuPageViewModelType is set, will be use masterDetail Approach
            {
                var menuPage      = _viewFactory.Resolve(_menuPageViewModelType);
                var principalPage = _viewFactory.Resolve(_startPageViewModelType);

                menuPage.Title = " ";
                try
                {
                    _app.MainPage = new MasterDetailPage()
                    {
                        Master = menuPage,
                        Detail = new NavigationPage(principalPage)
                    };
                }
                catch (Exception e)
                {
                    Console.WriteLine(e);
                    //  throw;
                }
            }
        }
        protected virtual void RegisterViews(IViewFactory viewFactory)
        {
            if (AutoRegisterAssembly == null)
                return;

            var viewModels = AutoRegisterAssembly.DefinedTypes.Where(t => t.Namespace != null && t.Namespace.EndsWith(".ViewModels") && t.Name.EndsWith("VM"));
            var views = AutoRegisterAssembly.DefinedTypes.Where(t => t.Namespace != null && t.Namespace.EndsWith(".Views") && t.Name.EndsWith("View"));

            foreach (var vm in viewModels)
            {
                var pairedViews = views.Where(v => v.Name.Substring(0, v.Name.Length - 4) == vm.Name.Substring(0, vm.Name.Length - 2));
                if (pairedViews.Count() == 1)
                {
                    var vmt = vm.AsType();
                    viewFactory.Register(vm.AsType(), pairedViews.First().AsType());
                }
            }
        }
        protected virtual void RegisterViews(IViewFactory viewFactory)
        {
            if (AutoRegisterAssembly == null)
            {
                return;
            }

            var viewModels = AutoRegisterAssembly.DefinedTypes.Where(t => t.Namespace != null && t.Namespace.EndsWith(".ViewModels") && t.Name.EndsWith("VM"));
            var views      = AutoRegisterAssembly.DefinedTypes.Where(t => t.Namespace != null && t.Namespace.EndsWith(".Views") && t.Name.EndsWith("View"));

            foreach (var vm in viewModels)
            {
                var pairedViews = views.Where(v => v.Name.Substring(0, v.Name.Length - 4) == vm.Name.Substring(0, vm.Name.Length - 2));
                if (pairedViews.Count() == 1)
                {
                    var vmt = vm.AsType();
                    viewFactory.Register(vm.AsType(), pairedViews.First().AsType());
                }
            }
        }
Exemplo n.º 27
0
 protected override void BindViewModelsToViews(IViewFactory viewFactory)
 {
     ViewFactory = viewFactory;
     ViewFactory.Register <MockViewModel, MockView>();
 }
Exemplo n.º 28
0
 protected void RegisterViews(IViewFactory viewFactory)
 {
     viewFactory.Register <HuntsViewModel, HuntsView>();
     viewFactory.Register <HuntViewModel, HuntView>();
 }
Exemplo n.º 29
0
 protected override void RegisterViews(IViewFactory viewFactory)
 {
     viewFactory.Register<LoginViewModel, Login>();
     viewFactory.Register<ContactosViewModel, Contactos>();
     viewFactory.Register<RegistroViewModel, Registro>();
 }
Exemplo n.º 30
0
 protected override void RegisterViews(IViewFactory viewFactory)
 {
     viewFactory.Register <MountainAreasViewModel, MountainAreasView>();
     viewFactory.Register <ForecastReportViewModel, ForecastReportView>();
 }
Exemplo n.º 31
0
 protected override void RegisterViews(IViewFactory viewFactory)
 {
     viewFactory.Register <MenuViewModel, MenuView>();
     viewFactory.Register <ArticlesViewModel, ArticlesView>();
 }
Exemplo n.º 32
0
 private void MapViews(IViewFactory viewFactory)
 {
     viewFactory.Register <MainViewModel, MainPage>();
     viewFactory.Register <LocationListViewModel, LocationListPage>();
     viewFactory.Register <ConfigurationViewModel, ConfigurationPage>();
 }
Exemplo n.º 33
0
        private static void RegisterViews(IViewFactory viewFactory)
        {
            viewFactory.Register<DisclaimerViewModel, DisclaimerListPage>();

            viewFactory.Register<PagesViewModel, InformationOverviewPage>();
            viewFactory.Register<DetailedPagesViewModel, DetailedInformationPage>();
            viewFactory.Register<PageViewModel, DetailPage>();

            viewFactory.Register<EventPageViewModel, EventDetailPage>();
            viewFactory.Register<EventPagesViewModel, EventsOverviewPage>();

            viewFactory.Register<LanguagesViewModel, LanguagesPage>();
            viewFactory.Register<LocationsViewModel, LocationsPage>();

            viewFactory.Register<MainPageViewModel, MainPage>();
            viewFactory.Register<NavigationViewModel, NavigationDrawerPage>();
            viewFactory.Register<SearchViewModel, SearchListPage>();
            viewFactory.Register<TabViewModel, TabPage>();
        }
Exemplo n.º 34
0
 protected override void RegisterViews(IViewFactory viewFactory)
 {
     viewFactory.Register <LoginViewModel, LoginView>();
     viewFactory.Register <MainViewModel, MainView>();
 }
Exemplo n.º 35
0
 protected override void RegisterViews(IViewFactory viewFactory)
 {
     viewFactory.Register<UsuariosViewModel,UsuariosView>();
 }
Exemplo n.º 36
0
 protected override void RegisterViews(IViewFactory viewFactory)
 {
     ViewFactory = viewFactory;
     ViewFactory.Register<MockViewModel, MockView>();
 }
Exemplo n.º 37
0
 protected override void RegisterViews(IViewFactory viewFactory)
 {
     viewFactory.Register <TimelineViewModel, TimelineView>();
     viewFactory.Register <AddTweetViewModel, AddTweetView>();
     viewFactory.Register <TweetViewModel, TweetView>();
 }
 protected override void RegisterViews(IViewFactory viewFactory)
 {
     base.RegisterViews(viewFactory);
     ViewFactory = viewFactory;
     ViewFactory.Register <MockViewModel, MockView>();
 }
Exemplo n.º 39
0
 private void RegisterViews(IViewFactory viewFactory)
 {
     viewFactory.Register <HomePageViewModel, HomePage>();
     viewFactory.Register <CriarViewModel, Criar>();
     viewFactory.Register <ConsultarViewModel, Consultar>();
 }
Exemplo n.º 40
0
 protected override void RegisterViews(IViewFactory viewFactory)
 {
     viewFactory.Register <Page1ViewModel, Page1>();
     viewFactory.Register <Page2ViewModel, Page2>();
     viewFactory.Register <Page3ViewModel, Page3>();
 }
Exemplo n.º 41
0
		protected override void RegisterViews(IViewFactory viewFactory)
		{
			viewFactory.Register<LoginViewModel, LoginView>();
			viewFactory.Register<MainViewModel, MainView>();
		}
Exemplo n.º 42
0
 protected override void RegisterViews(IViewFactory viewFactory)
 {
     viewFactory.Register<MountainAreasViewModel, MountainAreasView>();
     viewFactory.Register<ForecastReportViewModel, ForecastReportView>();
 }
Exemplo n.º 43
0
 private void RegisterViews()
 {
     viewFactory.Register <MainViewModel, MainPage>();
     viewFactory.Register <RatesViewModel, RatesPage>();
     viewFactory.Register <CalculateViewModel, CalculatePage>();
 }
Exemplo n.º 44
0
 private void RegisterViews(IViewFactory viewFactory)
 {
     viewFactory.Register <HomeBaseViewModel, HomePage>();
     viewFactory.Register <SecondViewModel, SecondPage>();
 }
Exemplo n.º 45
0
 private void RegisterViews(IViewFactory viewFactory)
 {
     viewFactory.Register <MainPageViewModel, MainPageView>();
     viewFactory.Register <ReminderListViewModel, ReminderListView>();
 }
Exemplo n.º 46
0
        private static void RegisterViews(IViewFactory viewFactory)
        {
            viewFactory.Register <LanguagesViewModel, LanguagesPage>();
            viewFactory.Register <LocationsViewModel, LocationsPage>();
            viewFactory.Register <SearchViewModel, SearchListPage>();

            // redesign
            viewFactory.Register <ContentContainerViewModel, ContentContainerPage>();
            viewFactory.Register <MainContentPageViewModel, MainContentPage>();
            viewFactory.Register <ExtrasContentPageViewModel, ExtrasContentPage>();
            viewFactory.Register <EventsContentPageViewModel, EventsContentPage>();

            // main
            viewFactory.Register <MainTwoLevelViewModel, MainTwoLevelPage>();

            // events
            viewFactory.Register <EventsSingleItemDetailViewModel, EventsSingleItemDetailPage>();

            // extras
            viewFactory.Register <SprungbrettViewModel, JobOffersPage>();
            viewFactory.Register <Careers4RefugeesViewModel, JobOffersPage>();

            // general
            viewFactory.Register <GeneralWebViewPageViewModel, GeneralWebViewPage>();
            viewFactory.Register <PdfWebViewPageViewModel, PdfWebViewPage>();
            viewFactory.Register <ImagePageViewModel, ImageViewPage>();
            // settings
            viewFactory.Register <SettingsPageViewModel, SettingsPage>();
        }