Esempio n. 1
0
 public AppController(INetworkInfoService networkInfoService, DataController dataController, FeedsController feedsController,
                      SettingsController settingsController, ShellViewModel shellViewModel)
 {
     this.networkInfoService            = networkInfoService;
     this.dataController                = dataController;
     this.feedsController               = feedsController;
     this.settingsController            = settingsController;
     this.shellViewModel                = shellViewModel;
     shellViewModel.ShowFeedViewCommand = feedsController.ShowFeedViewCommand;
     shellViewModel.EditFeedCommand     = feedsController.EditFeedCommand;
     shellViewModel.MoveFeedUpCommand   = feedsController.MoveFeedUpCommand;
     shellViewModel.MoveFeedDownCommand = feedsController.MoveFeedDownCommand;
     shellViewModel.RemoveFeedCommand   = feedsController.RemoveFeedCommand;
     shellViewModel.FooterMenu          = new[]
     {
         new NavigationItem("Add Feed", "\uf412")
         {
             Command = feedsController.AddFeedCommand
         },
         new NavigationItem("Settings", "\uf493")
         {
             Command = new AsyncDelegateCommand(() =>
                                                shellViewModel.Navigate(this.settingsController.SettingsViewModel))
         }
     };
     shellViewModel.Initialize();
     MainView = shellViewModel.View;
 }
Esempio n. 2
0
 public AppController(INetworkInfoService networkInfoService, FeedsController feedsController, Lazy <SettingsController> settingsController,
                      ShellViewModel shellViewModel)
 {
     this.networkInfoService            = networkInfoService;
     this.feedsController               = feedsController;
     this.settingsController            = settingsController;
     this.shellViewModel                = shellViewModel;
     shellViewModel.ShowFeedViewCommand = feedsController.ShowFeedViewCommand;
     shellViewModel.RemoveFeedCommand   = feedsController.RemoveFeedCommand;
     shellViewModel.FooterMenu          = new[]
     {
         new NavigationItem("Settings", "\uf493")
         {
             Command = new AsyncDelegateCommand(() =>
                                                shellViewModel.Navigate(this.settingsController.Value.SettingsViewModel))
         }
     };
     shellViewModel.Initialize();
     MainView = shellViewModel.View;
 }