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>(); }
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>(); }