示例#1
0
 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();
 }
示例#2
0
 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;
     }
 }
示例#3
0
 private void OnHOHEventUpdate(object sender, HOHEvent e)
 {
     if (e.ProtocolState == "interrupt")
     {
         ExecuteStatus = false;
     }
     else
     {
         foreach (Exercise ex in Exercises)
         {
             ex.ExecuteStatus = true;
             ExecuteStatus    = true;
         }
     }
 }
示例#4
0
 private void OnExerciseStateUpdated(object sender, HOHEvent e)
 {
     exerciseRunning = e.ExerciseRunning;
     //ExecuteStatus = exerciseRunning;
 }
示例#5
0
 protected virtual void OnExerciseStateUpdated(HOHEvent e)
 {
     ExerciseStateUpdated?.Invoke(this, e);
 }
示例#6
0
 protected virtual void OnClinicUpdated(HOHEvent e)
 {
     ClinicUpdated?.Invoke(this, e);
 }
示例#7
0
 protected virtual void OnRepetitionsUpdated(HOHEvent e)
 {
     RepetitionsUpdated?.Invoke(this, e);
 }
示例#8
0
 protected virtual void OnProtocolStateUpdated(HOHEvent e)
 {
     ProtocolStateUpdated?.Invoke(this, e);
 }
示例#9
0
 protected virtual void OnUsrMsgUpdated(HOHEvent e)
 {
     UsrMsgUpdated?.Invoke(this, e);
 }
示例#10
0
 protected virtual void OnLogUpdated(HOHEvent e)
 {
     LogUpdated?.Invoke(this, e);
 }
示例#11
0
 protected virtual void OnRewardLaunched(HOHEvent e)
 {
     RewardLauncherUpdated?.Invoke(this, e);
 }