protected void InitInstrumentation (ILQHsm hsm)
		{
			// Use QStateChangeListener to minimise exposure to this execution controller - I do not want the controller
			// ref to be passed along.
			_Listener = new QStateChangeListenerBase (this);

			if (_Hsm != null)
			{
				_Hsm.StateChange -= new EventHandler (_Listener.HandleStateChange);
			}
			_Hsm = hsm;
			_Hsm.StateChange += new EventHandler(_Listener.HandleStateChange);
		}
예제 #2
0
 public QStateChangeListenerBase(IQStateChangeListener listener)
 {
     _Listener = listener;
 }
 public QStateChangeListenerBase(IQStateChangeListener listener)
 {
     _Listener = listener;
 }
        protected void InitInstrumentation(ILQHsm hsm)
        {
            // Use QStateChangeListener to minimise exposure to this execution controller - I do not want the controller
            // ref to be passed along.
            _Listener = new QStateChangeListenerBase (this);

            if (_Hsm != null)
            {
                _Hsm.StateChange -= new EventHandler (_Listener.HandleStateChange);
            }
            _Hsm = hsm;
            _Hsm.StateChange += new EventHandler(_Listener.HandleStateChange);
        }