예제 #1
0
        private void ApplyBinding(BindingDef binding, IBindingContainer bindingContainer)
        {
            TargetProperty property = binding.ResolveAsTarget(this.bindingContainer);

            if (property != null)
            {
                object value = property.Value;
                SetProperty(binding, value);
            }
        }
예제 #2
0
        private void ExecuteCommandBind(BindingDef binding)
        {
            TargetProperty target = binding.ResolveAsTarget(this.BindingContainer);

            ExecuteCommandBind(target.OwningControl, binding);
        }