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);
        }
Beispiel #2
0
        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;
            }
        }
Beispiel #3
0
 void editorView1_Navigate(object sender, EditorNavigationArgs e)
 {
     MessageBox.Show(this, "Hello! " + e.Destination);
 }