Exemple #1
0
        public ApplicationMenuStateController(IRegionManager regionManager, ApplicationMenuViewModel applicationMenuViewModel)
        {
            this.regionManager            = regionManager;
            this.applicationMenuViewModel = applicationMenuViewModel;

            //We listen for changes into the collection, just in case the region has not been added so we can listen to the events
            //this.regionManager.Regions.CollectionChanged += this.Regions_CollectionChanged;

            //If the region has been added already we add the events
            // this.RegisterNavigatedWithRegion(RegionNames.MAIN_REGION);

            //Add event to set the initial state of the menu
            applicationMenuViewModel.MenuItemAdded += this.ApplicationMenuViewModel_MenuItemAdded;
        }
Exemple #2
0
        public ApplicationCommands(IRegionManager regionManager, ApplicationMenuViewModel applicationMenuViewModel)
        {
            this.regionManager = regionManager;

            this.applicationMenuViewModel = applicationMenuViewModel;
        }