void TextView_Navigate(object sender, EditorNavigationArgs e) { var addr = e.Destination as Address; var proc = e.Destination as Procedure; if (proc != null) { addr = proc.EntryAddress; } if (addr == null) { return; } UserNavigateToAddress(combinedCodeView.MixedCodeDataView.TopAddress, addr); }
void textView_Navigate(object sender, EditorNavigationArgs e) { var procDst = e.Destination as Procedure; if (procDst == null) { return; } navInteractor.RememberAddress(this.proc); DisplayProcedure(this.program, procDst); // ...and move to the new position. //$REVIEW: should this fire an event on a ISelectionService interface // and let interested parties track that? var pbSvc = services.GetService <IProjectBrowserService>(); if (pbSvc != null) { pbSvc.SelectedObject = procDst; } }
void editorView1_Navigate(object sender, EditorNavigationArgs e) { MessageBox.Show(this, "Hello! " + e.Destination); }