Ejemplo n.º 1
0
        public void DisplayStatement(Program program, Statement stm)
        {
            var pane       = new CombinedCodeViewInteractor();
            var windowType = typeof(CombinedCodeViewInteractor).Name;
            var proc       = stm.Block.Procedure;
            var frame      = ShowWindow(windowType, proc.Name, proc, pane);

            ((CombinedCodeViewInteractor)frame.Pane).DisplayStatement(program, stm);
        }
Ejemplo n.º 2
0
        public void DisplayGlobals(Program program, ImageSegment segment)
        {
            var pane       = new CombinedCodeViewInteractor();
            var windowType = typeof(CombinedCodeViewInteractor).Name;
            var label      = string.Format(Resources.SegmentGlobalsFmt, segment.Name);
            var frame      = ShowWindow(windowType, label, segment, pane);

            ((CombinedCodeViewInteractor)frame.Pane).DisplayGlobals(program, segment);
        }
Ejemplo n.º 3
0
 public void DisplayProcedure(Program program, Procedure proc, bool mixedMode)
 {
     if (proc == null)
     {
         return;
     }
     if (mixedMode)
     {
         var pane       = new CombinedCodeViewInteractor();
         var windowType = typeof(CombinedCodeViewInteractor).Name;
         var frame      = ShowWindow(windowType, proc.Name, proc, pane);
         ((CombinedCodeViewInteractor)frame.Pane).DisplayProcedure(program, proc);
     }
     else
     {
         var pane       = new CodeViewInteractor();
         var windowType = typeof(CombinedCodeViewInteractor).Name;
         var frame      = ShowWindow(windowType, proc.Name, proc, pane);
         ((CodeViewInteractor)frame.Pane).DisplayProcedure(program, proc);
     }
 }