Configure() публичный Метод

public Configure ( string key, Type value ) : void
key string
value System.Type
Результат void
Пример #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>();
       }
Пример #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>();
        }