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>(); }
protected override void RegisterViews(IViewFactory viewFactory) { viewFactory.Register <LoginViewModel, Login>(); viewFactory.Register <RegistroViewModel, Registro>(); viewFactory.Register <PrincipalViewModel, Principal>(); viewFactory.Register <NuevoBlocViewModel, NuevoBlocView>(); }
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>(); }
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>(); }
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>(); }
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>(); }
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>(); }
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>(); }
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>(); }
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>(); }
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>(); }
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 }
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>(); }
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> (); }
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>(); }
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>(); }
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>(); }
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>(); }
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>(); }
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>(); }
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()); } } }
protected override void BindViewModelsToViews(IViewFactory viewFactory) { ViewFactory = viewFactory; ViewFactory.Register <MockViewModel, MockView>(); }
protected void RegisterViews(IViewFactory viewFactory) { viewFactory.Register <HuntsViewModel, HuntsView>(); viewFactory.Register <HuntViewModel, HuntView>(); }
protected override void RegisterViews(IViewFactory viewFactory) { viewFactory.Register<LoginViewModel, Login>(); viewFactory.Register<ContactosViewModel, Contactos>(); viewFactory.Register<RegistroViewModel, Registro>(); }
protected override void RegisterViews(IViewFactory viewFactory) { viewFactory.Register <MountainAreasViewModel, MountainAreasView>(); viewFactory.Register <ForecastReportViewModel, ForecastReportView>(); }
protected override void RegisterViews(IViewFactory viewFactory) { viewFactory.Register <MenuViewModel, MenuView>(); viewFactory.Register <ArticlesViewModel, ArticlesView>(); }
private void MapViews(IViewFactory viewFactory) { viewFactory.Register <MainViewModel, MainPage>(); viewFactory.Register <LocationListViewModel, LocationListPage>(); viewFactory.Register <ConfigurationViewModel, ConfigurationPage>(); }
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>(); }
protected override void RegisterViews(IViewFactory viewFactory) { viewFactory.Register <LoginViewModel, LoginView>(); viewFactory.Register <MainViewModel, MainView>(); }
protected override void RegisterViews(IViewFactory viewFactory) { viewFactory.Register<UsuariosViewModel,UsuariosView>(); }
protected override void RegisterViews(IViewFactory viewFactory) { ViewFactory = viewFactory; ViewFactory.Register<MockViewModel, MockView>(); }
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>(); }
private void RegisterViews(IViewFactory viewFactory) { viewFactory.Register <HomePageViewModel, HomePage>(); viewFactory.Register <CriarViewModel, Criar>(); viewFactory.Register <ConsultarViewModel, Consultar>(); }
protected override void RegisterViews(IViewFactory viewFactory) { viewFactory.Register <Page1ViewModel, Page1>(); viewFactory.Register <Page2ViewModel, Page2>(); viewFactory.Register <Page3ViewModel, Page3>(); }
protected override void RegisterViews(IViewFactory viewFactory) { viewFactory.Register<LoginViewModel, LoginView>(); viewFactory.Register<MainViewModel, MainView>(); }
protected override void RegisterViews(IViewFactory viewFactory) { viewFactory.Register<MountainAreasViewModel, MountainAreasView>(); viewFactory.Register<ForecastReportViewModel, ForecastReportView>(); }
private void RegisterViews() { viewFactory.Register <MainViewModel, MainPage>(); viewFactory.Register <RatesViewModel, RatesPage>(); viewFactory.Register <CalculateViewModel, CalculatePage>(); }
private void RegisterViews(IViewFactory viewFactory) { viewFactory.Register <HomeBaseViewModel, HomePage>(); viewFactory.Register <SecondViewModel, SecondPage>(); }
private void RegisterViews(IViewFactory viewFactory) { viewFactory.Register <MainPageViewModel, MainPageView>(); viewFactory.Register <ReminderListViewModel, ReminderListView>(); }
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>(); }