public SFListener(State targetState, int command, int time, object obj) { this.WaitTime = time; this.TargetState = targetState; this.SFCode = command; this.HomeThread = obj; HOHEventObj = new HOHEvent(); }
private void OnHOHEventUpdate(object sender, HOHEvent e) { if (e.ProtocolState == "interrupt") { sf?.InterruptListener(NW); ExecuteStatus = false; NW.ExecuteStatus = false; } else { ExecuteStatus = true; NW.ExecuteStatus = true; } }
private void OnHOHEventUpdate(object sender, HOHEvent e) { if (e.ProtocolState == "interrupt") { ExecuteStatus = false; } else { foreach (Exercise ex in Exercises) { ex.ExecuteStatus = true; ExecuteStatus = true; } } }
private void OnExerciseStateUpdated(object sender, HOHEvent e) { exerciseRunning = e.ExerciseRunning; //ExecuteStatus = exerciseRunning; }
protected virtual void OnExerciseStateUpdated(HOHEvent e) { ExerciseStateUpdated?.Invoke(this, e); }
protected virtual void OnClinicUpdated(HOHEvent e) { ClinicUpdated?.Invoke(this, e); }
protected virtual void OnRepetitionsUpdated(HOHEvent e) { RepetitionsUpdated?.Invoke(this, e); }
protected virtual void OnProtocolStateUpdated(HOHEvent e) { ProtocolStateUpdated?.Invoke(this, e); }
protected virtual void OnUsrMsgUpdated(HOHEvent e) { UsrMsgUpdated?.Invoke(this, e); }
protected virtual void OnLogUpdated(HOHEvent e) { LogUpdated?.Invoke(this, e); }
protected virtual void OnRewardLaunched(HOHEvent e) { RewardLauncherUpdated?.Invoke(this, e); }