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