void Debugger_OnInstructionChanged(object sender, Instruction instruction) { GridOpCode.CurrentCell = GridOpCode.Rows[instruction == null ? 0 : (int)instruction.Location.Index].Cells[3]; Jumps.RefreshDynJumps(Debugger); GridOpCode.Refresh(); GridAltStack.Refresh(); GridStack.Refresh(); Registers.Refresh(); }
void UpdateDebugState() { int instruction = Debugger == null ? 0 : (int)Debugger.CurrentInstructionIndex; GridOpCode.Invalidate(); Registers.Refresh(); //GridOpCode.ClearSelection(); //GridOpCode.Rows[(int)instructionIndex].Selected = true; GridOpCode.CurrentCell = GridOpCode.Rows[instruction].Cells[3]; Jumps.RefreshDynJumps(Debugger); //Application.DoEvents(); }