public void IntegrateViewModel(object profilingResultsViewModel) { ProfilingResultsViewModel viewModel = (ProfilingResultsViewModel)profilingResultsViewModel; IMenuItem basicInformationMenuItem = viewModel.Menu.AddMenuItem(new SqlMenuItem()); basicInformationMenuItem.AddMenuItem(new MsSqlQueriesMenuItem(viewModel.Session)); }
public void IntegrateViewModel(object profilingResultsViewModel) { ProfilingResultsViewModel viewModel = (ProfilingResultsViewModel)profilingResultsViewModel; _menuAdapter = new DotNetPerformanceAdapter(viewModel.Session); viewModel.Menu.AddMenuItem(new PerformanceMenuItem()).AddMenuItem(_menuAdapter); }
public void IntegrateViewModel(object profilingResultsViewModel) { ProfilingResultsViewModel viewModel = (ProfilingResultsViewModel)profilingResultsViewModel; IMenuItem performanceMenuItem = viewModel.Menu.AddMenuItem(new PerformanceMenuItem()); performanceMenuItem.AddMenuItem(new EventsTreeMenuItem(_eventsTrees, _eventsFormatter)); performanceMenuItem.AddMenuItem(new ThreadsTreeMenuItem(_eventsTrees, _eventsFormatter)); }
public void IntegrateViewModel(object profilingResultsViewModel) { ProfilingResultsViewModel viewModel = (ProfilingResultsViewModel)profilingResultsViewModel; IMenuItem basicInformationMenuItem = viewModel.Menu.AddMenuItem(new BasicInformationMenuItem()); basicInformationMenuItem.AddMenuItem(new AppDomainsMenuItem(viewModel.Session)); basicInformationMenuItem.AddMenuItem(new AssembliesMenuItem(viewModel.Session)); basicInformationMenuItem.AddMenuItem(new ModulesMenuItem(viewModel.Session)); basicInformationMenuItem.AddMenuItem(new ClassesMenuItem(viewModel.Session)); basicInformationMenuItem.AddMenuItem(new FunctionsMenuItem(viewModel.Session)); basicInformationMenuItem.AddMenuItem(new ThreadsMenuItem(viewModel.Session)); }
public void OnViewModelAttached(object viewModel) { _profilingResultsViewModel = (ProfilingResultsViewModel)viewModel; }