Ejemplo n.º 1
0
        public Samples.SampleWatch CreateHsm(string id)
        {
            IQEventManager eventManager = InitHsmRunner(id);

            Samples.SampleWatch sampleWatch
                = new Samples.SampleWatch(id, eventManager);
            return(sampleWatch);
        }
Ejemplo n.º 2
0
        private void buttonCreateWatch_Click(object sender, System.EventArgs e)
        {
            _SampleWatch = new Samples.SampleWatch(_EventManager);
            _Hsm         = _SampleWatch; // use it as a straight on state machine
            _HsmSignals  = _SampleWatch; // use it as a source of signals -- instead of calling AsyncDispatch() on _Hsm

            SetupHsmEvents(_Hsm);
            _Hsm.Init();

            EnableEvents();
        }
Ejemplo n.º 3
0
        private void buttonStartWatch_Click(object sender, System.EventArgs e)
        {
            buttonStartWatch.Enabled = false;

            _SampleWatch = _ExecutionModel.CreateHsm(_Id);
            _Hsm         = _SampleWatch;                    // use it as a straight on state machine
            _HsmSignals  = _Hsm as Samples.ISigSampleWatch; // use it as a source of signals -- instead of calling AsyncDispatch() on _Hsm

            SetupHsmEvents(_Hsm);
            _Hsm.Init();

            EnableEvents();
        }
Ejemplo n.º 4
0
 public Samples.SampleWatch CreateHsm(string id)
 {
     Samples.SampleWatch sampleWatch
         = new Samples.SampleWatch(id, _EventManager);
     return(sampleWatch);
 }
 public Samples.SampleWatch CreateHsm(string id)
 {
     Samples.SampleWatch sampleWatch
         = new Samples.SampleWatch(id, id, _LifeCycleManager);
     return(sampleWatch);
 }