コード例 #1
0
        private void OnUiConfigChangedEvent(object sender, ConfigChangedEventArgs <UiConfig> e)
        {
            //Update methods for all handler and services
            var valueSpecifications = e?.NewValue?.ValueDefinitions?.ToList();
            var sources             = valueSpecifications?.Select(x => x.DataSource).ToList();

            if (sources != null)
            {
                _valueHandler.UpdateDataSources(sources);
            }

            if (e?.OldValue != null)
            {
                NotifySmartDevicesForConfigChange();
            }
        }