Configure() public method

public Configure ( string key, Type value ) : void
key string
value System.Type
return void
Exemplo n.º 1
0
      public static void Start()
       {
           var nav = new WPNavigationService();
           nav.Configure(ViewModelLocator.ContractsPageKey, typeof(ContractsPage));
           nav.Configure(ViewModelLocator.SettingsPageKey, typeof(SettingsPage));
           nav.Configure(ViewModelLocator.FavoritesPageKey, typeof(FavoritesPage));
           nav.Configure(ViewModelLocator.AboutPageKey, typeof(AboutPage));
           nav.Configure(ViewModelLocator.HowToPageKey, typeof(HowToPage));
 
           SimpleIoc.Default.Register<INavigationService>(() => nav);
           SimpleIoc.Default.Register<IDialogService, DialogService>();
           SimpleIoc.Default.Register<ILocalisationService, LocalisationService>();
           SimpleIoc.Default.Register<ITileService, TileService>();
       }
Exemplo n.º 2
0
        public static void Start()
        {
            var nav = new WPNavigationService();

            nav.Configure(ViewModelLocator.ContractsPageKey, typeof(ContractsPage));
            nav.Configure(ViewModelLocator.SettingsPageKey, typeof(SettingsPage));
            nav.Configure(ViewModelLocator.FavoritesPageKey, typeof(FavoritesPage));
            nav.Configure(ViewModelLocator.AboutPageKey, typeof(AboutPage));
            nav.Configure(ViewModelLocator.HowToPageKey, typeof(HowToPage));

            SimpleIoc.Default.Register <INavigationService>(() => nav);
            SimpleIoc.Default.Register <IDialogService, DialogService>();
            SimpleIoc.Default.Register <ILocalisationService, LocalisationService>();
            SimpleIoc.Default.Register <ITileService, TileService>();
        }