void OnMachineChanged(object sender, MachineChangedEventArgs e) { if (_currentMachine != null) { _currentMachine.ExecutionComplete -= OnExecutionComplete; _currentMachine.ExecutionSuspended -= OnExecutionSuspended; } _currentMachine = e.Machine; if (_currentMachine != null) { _currentMachine.ExecutionComplete += OnExecutionComplete; _currentMachine.ExecutionSuspended += OnExecutionSuspended; } AdjustVariables(); }
void OnMachineChanged(object sender, MachineChangedEventArgs e) { if (_currentMachine != null) { _currentMachine.ExecutionComplete -= OnExecutionComplete; _currentMachine.ExecutionSuspended -= OnExecutionSuspended; } _currentMachine = e.Machine; if (_currentMachine != null) { _currentMachine.ExecutionComplete += OnExecutionComplete; _currentMachine.ExecutionSuspended += OnExecutionSuspended; } SetCurrentStackFrame(); }