public HeatingStrategy(HeatingController controller, StrategyEvent on, StrategyEvent off) : base(controller) { this.RegisterEvent(on); this.RegisterEvent(off); on.Executed += (o, e) => this.Change(true); off.Executed += (o, e) => this.Change(false); }
public void UIInputStrategy() { StrategyEvent?.Invoke(1); }