public void SetRegister(WaterTempChannels channel, byte value)
 {
     _statuses[channel].ExpectedStatus = value;
     ChannelStatusesChanged.Invoke(this, new ChannelStatusesChangedEventArgs <WaterTempChannels>(_statuses.Where(s => s.Key == channel)
                                                                                                 .ToImmutableDictionary()));
 }
示例#2
0
 private void OnChannelStatusesChanged()
 {
     ChannelStatusesChanged?.Invoke(this, new ChannelStatusesChangedEventArgs(_statuses.ToImmutableDictionary()));
 }
示例#3
0
 private void OnChannelStatusesChanged()
 {
     ChannelStatusesChanged?.Invoke(this, new ChannelStatusesChangedEventArgs(new ReadOnlyDictionary <Channels, bool>(_statuses)));
 }