Ejemplo n.º 1
0
 public IMenu GetMenu(PageViewModel pageViewModel)
 {
     if (pageViewModel is ProfilingViewModel)
     {
         return(MenuReader.ReadMenu(Resources.Menu));
     }
     return(null);
 }
Ejemplo n.º 2
0
        public IMenu GetMenu(PageViewModel pageViewModel)
        {
            ProfilingViewModel profilingViewModel = pageViewModel as ProfilingViewModel;

            if (profilingViewModel != null)
            {
                IProfilingApplication  application  = profilingViewModel.Application;
                ResolutionDependencies dependencies = new ResolutionDependencies();
                dependencies.Register(application);
                dependencies.Register(profilingViewModel);
                return(MenuReader.ReadMenu(Resources.Menu, dependencies));
            }
            return(null);
        }