private void setButtonImages0()
 {
     if (_stopping)
     {
         disableAll();
     }
     else
     {
         bool                atBreak;
         int                 level;
         EnumRunStatus       status;
         UserControlDebugger c = CurrentComponentUI;
         if (c != null)
         {
             if (c.CurrentViewerFinished)
             {
                 status  = EnumRunStatus.Finished;
                 atBreak = false;
                 level   = 0;
             }
             else
             {
                 atBreak = c.GetAtBreak(c.CurrentThreadId);
                 level   = c.GetCallStackLevel(c.CurrentThreadId);
                 status  = c.GetRunStatus(c.CurrentThreadId);
             }
         }
         else
         {
             atBreak = false;
             level   = 0;
             status  = EnumRunStatus.Run;
         }
         if (status == EnumRunStatus.Finished)
         {
             disableAll();
         }
         else
         {
             if (atBreak)
             {
                 btRun.Image        = imageList1.Images[IMG_Run];
                 btRun.Enabled      = true;
                 btPause.Image      = imageList1.Images[IMG_Pause2];
                 btPause.Enabled    = false;
                 btStepInto.Image   = imageList1.Images[IMG_StepInto];
                 btStepInto.Enabled = true;
                 btStepOver.Image   = imageList1.Images[IMG_StepOver];
                 btStepOver.Enabled = true;
                 if (level > 0)
                 {
                     btStepOut.Image   = imageList1.Images[IMG_StepOut];
                     btStepOut.Enabled = true;
                 }
                 else
                 {
                     btStepOut.Image   = imageList1.Images[IMG_StepOut2];
                     btStepOut.Enabled = false;
                 }
             }
             else
             {
                 btRun.Image        = imageList1.Images[IMG_Run2];
                 btRun.Enabled      = false;
                 btPause.Image      = imageList1.Images[IMG_Pause];
                 btPause.Enabled    = true;
                 btStepInto.Image   = imageList1.Images[IMG_StepInto2];
                 btStepInto.Enabled = false;
                 btStepOver.Image   = imageList1.Images[IMG_StepOver2];
                 btStepOver.Enabled = false;
                 btStepOut.Image    = imageList1.Images[IMG_StepOut2];
                 btStepOut.Enabled  = false;
             }
         }
         btStop.Image   = imageList1.Images[IMG_Stop];
         btStop.Enabled = true;
     }
 }
Пример #2
0
 public bool AtBreak(int threadId)
 {
     return(_ComponentDebugger.GetAtBreak(threadId));
 }