Exemplo n.º 1
0
 void RegisterViews()
 {
     SimpleIoC.RegisterPage <MainViewModel, MainPage>();
     SimpleIoC.RegisterPage <SubscriptionsViewModel, SubscriptionsPage>();
     SimpleIoC.RegisterPage <ItemDetailViewModel, ItemDetailPage>();
     SimpleIoC.RegisterPage <NewItemViewModel, NewItemPage>();
     SimpleIoC.RegisterPage <SearchViewModel, SearchPage>();
     SimpleIoC.RegisterPage <PodcastViewModel, PodcastPage>();
 }
Exemplo n.º 2
0
        public App()
        {
            InitializeComponent();

            SimpleIoC.RegisterPage <EnterKeyViewModel, EnterKeyPage>();
            SimpleIoC.RegisterPage <AchievementViewModel, AchievementPage>();
            SimpleIoC.RegisterPage <AchievementDetailViewModel, AchievementDetailPage>();
            BlobCache.ApplicationName = "Akavache";

            if (string.IsNullOrEmpty(Settings.ApiKey))
            {
                NavigationService.SetRoot(new EnterKeyViewModel());
                return;
            }
            NavigationService.SetRoot(new AchievementViewModel());
        }