private NamespaceCycle NamespaceCycle(IJumpToSource jumper) { var namespaceCycle = new NamespaceCycle(metrics, NamespacesInCycle()); namespaceCycle.Jump += type => TypeJump.To(metrics, type, jumper); return(namespaceCycle); }
private NamespaceCycleDisplayVM CreateViewModel(IJumpToSource jumper) { var viewModel = new NamespaceCycleDisplayVM("Namespace cycle"); viewModel.Display(NamespaceCycle(jumper)); return(viewModel); }
public override void OnDoubleClick(IJumpToSource jumper) { var cycleDisplay = new NamespaceCycleDisplay(); cycleDisplay.DataContext = CreateViewModel(jumper); cycleDisplay.Show(); }
public static FrameworkElement CreateHotspots(ViewHub hub, IJumpToSource jumpToSource) { var hotspotsView = new View.Hotspots(); var hotspotsViewModel = new ViewModels.Hotspots.Hotspots { Dispatchable = hotspotsView }; hotspotsViewModel.RegisterHub(hub); hotspotsViewModel.SourceLocating = jumpToSource; hotspotsView.DataContext = hotspotsViewModel; return hotspotsView; }
public static FrameworkElement CreateCockpit(ViewHub hub, IJumpToSource jumpToSource) { var cockpitView = new View.Cockpit(); var cockpitViewModel = new ViewModels.Cockpit.Cockpit { Dispatchable = cockpitView }; cockpitViewModel.RegisterHub(hub); cockpitViewModel.SourceLocating = jumpToSource; cockpitView.DataContext = cockpitViewModel; return cockpitView; }
public override void OnDoubleClick(IJumpToSource jumper) { if (Report.SourceLocation.IsAvailable) { jumper.JumpToFileLocation( Report.SourceLocation.Filename, Report.SourceLocation.Line, true); } }
public static FrameworkElement CreateCockpit(ViewHub hub, IJumpToSource jumpToSource) { var cockpitView = new View.Cockpit(); var cockpitViewModel = new ViewModels.Cockpit.Cockpit { Dispatchable = cockpitView }; cockpitViewModel.RegisterHub(hub); cockpitViewModel.SourceLocating = jumpToSource; cockpitView.DataContext = cockpitViewModel; return(cockpitView); }
public static FrameworkElement CreateHotspots(ViewHub hub, IJumpToSource jumpToSource) { var hotspotsView = new View.Hotspots(); var hotspotsViewModel = new ViewModels.Hotspots.Hotspots { Dispatchable = hotspotsView }; hotspotsViewModel.RegisterHub(hub); hotspotsViewModel.SourceLocating = jumpToSource; hotspotsView.DataContext = hotspotsViewModel; return(hotspotsView); }
public virtual void OnDoubleClick(IJumpToSource jumper) { }
private void JumpToMethod(IJumpToSource jumper, MethodMetricsReport firstMethod) { jumper.JumpToFileLocation( firstMethod.SourceLocation.Filename, firstMethod.SourceLocation.Line, true); }
public TypeJump(MetricsReport metrics, TypeMetricsReport type, IJumpToSource jumper) { this.metrics = metrics; this.type = type; this.jumper = jumper; }
public static void To(MetricsReport metrics, TypeMetricsReport type, IJumpToSource jumper) { new TypeJump(metrics, type, jumper).Jump(); }
public override void OnDoubleClick(IJumpToSource jumper) { TypeJump.To(metrics, Report, jumper); }