Exemple #1
0
 public ConsumerChangedEventArgs(DeviceType deviceType, ConsumerTemplate oldConsumer, ConsumerTemplate newConsumer, IReadonlyContext oldConsumerArgs)
 {
     DeviceType      = deviceType;
     OldConsumer     = oldConsumer;
     NewConsumer     = newConsumer;
     OldConsumerArgs = oldConsumerArgs ?? EmptyContext.Instance;
 }
        private void InitializeConsumerConfigurationPanel(ConsumerConfigViewModel consumerConfigViewModel, ConsumerTemplate consumer)
        {
            consumerConfigViewModel.Current = consumer;
            consumerConfigViewModel.ParamPanel.SetDescriptors(consumer?.Factory as IParameterPresentAdapter, AsGroup(consumer?.Factory.GetParameters(consumer.Clz)));

            InvalidateScrollInfo();
            IsLayoutDirty = IsLoaded;
        }