コード例 #1
0
 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();
 }
コード例 #2
0
 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();
 }