public VisualProfilerUIView() { if (Application.ResourceAssembly == null) { Application.ResourceAssembly = typeof (MainWindow).Assembly; } EnsureWPFToolKitDllLoads(); InitializeComponent(); _uiLogic = new UILogic(); }
private void OnMethodClick(UILogic uiLogic, MethodViewModel mvm) { string sourcePath = uiLogic.GetSourceFilePathForMethod(mvm); _dte.ItemOperations.OpenFile(sourcePath); //TODO when the adornment layer is stable, enable this line moving. //var firstLineOfMethod = uiLogic.GetFirstLineOfMethod(mvm); //var commandName = "Edit.GoTo " + firstLineOfMethod; //_dte.ExecuteCommand(commandName); }