internal DataBindingModifier(DirectDataBinding <TLayerProperty, TProperty> directDataBinding, DataBindingModifierEntity entity)
 {
     DirectDataBinding = directDataBinding ?? throw new ArgumentNullException(nameof(directDataBinding));
     Entity            = entity;
     Load();
     Initialize();
 }
 internal DataBindingModifier(DirectDataBinding <TLayerProperty, TProperty> directDataBinding, ProfileRightSideType parameterType)
 {
     DirectDataBinding = directDataBinding ?? throw new ArgumentNullException(nameof(directDataBinding));
     Order             = directDataBinding.Modifiers.Count + 1;
     ParameterType     = parameterType;
     Entity            = new DataBindingModifierEntity();
     Initialize();
     Save();
 }
Beispiel #3
0
        private void ApplyDataBindingMode()
        {
            DataBindingMode?.Dispose();
            DataBindingMode = null;

            switch (Entity.DataBindingMode)
            {
            case DirectDataBindingEntity directDataBindingEntity:
                DataBindingMode = new DirectDataBinding <TLayerProperty, TProperty>(this, directDataBindingEntity);
                break;

            case ConditionalDataBindingEntity conditionalDataBindingEntity:
                DataBindingMode = new ConditionalDataBinding <TLayerProperty, TProperty>(this, conditionalDataBindingEntity);
                break;
            }
        }