예제 #1
0
		public ListBindableAttribute (BindableSupport flags)
		{
            		if (flags == BindableSupport.No)
                		bindable = false;
            		else
                		bindable = true;
		}
        public void Ctor_BindableSupport(BindableSupport support, bool expectedBindable)
        {
            var attribute = new ListBindableAttribute(support);

            Assert.Equal(expectedBindable, attribute.ListBindable);
            Assert.Equal(expectedBindable || support == BindableSupport.Default, attribute.IsDefaultAttribute());
        }
예제 #3
0
		public BindableAttribute (BindableSupport flags)
		{
			//this.flags = flags;
			if (flags == BindableSupport.No)
				this.bindable = false;
				
			if (flags == BindableSupport.Yes || flags == BindableSupport.Default)
				this.bindable = true;
		}
예제 #4
0
        public void Ctor_BindableSupport_BindingDirection(BindableSupport support, BindingDirection direction, bool expectedBindable)
        {
            var attribute = new BindableAttribute(support, direction);

            Assert.Equal(expectedBindable, attribute.Bindable);
            Assert.Equal(direction, attribute.Direction);

            Assert.Equal(!expectedBindable || support == BindableSupport.Default, attribute.IsDefaultAttribute());
        }
예제 #5
0
 public ListBindableAttribute(BindableSupport flags)
 {
     if (flags == BindableSupport.No)
     {
         bindable = false;
     }
     else
     {
         bindable = true;
     }
 }
예제 #6
0
        public BindableAttribute(BindableSupport flags)
        {
            //this.flags = flags;
            if (flags == BindableSupport.No)
            {
                this.bindable = false;
            }

            if (flags == BindableSupport.Yes || flags == BindableSupport.Default)
            {
                this.bindable = true;
            }
        }
예제 #7
0
 public BindableAttribute(BindableSupport flags, BindingDirection direction)
 {
     throw new NotImplementedException();
 }
예제 #8
0
		public BindableAttribute (BindableSupport flags, BindingDirection direction): this (flags)
		{
			this.direction = direction;
		}
예제 #9
0
 public BindableAttribute(BindableSupport flags)
 {
     throw new NotImplementedException();
 }
예제 #10
0
 public ListBindableAttribute(BindableSupport flags)
 {
     this.flags = flags;
 }
예제 #11
0
 // Constructors.
 public ListBindableAttribute(bool listBindable)
 {
     this.flags = (listBindable ? BindableSupport.Yes
                                                                            : BindableSupport.No);
 }
예제 #12
0
 public ListBindableAttribute(BindableSupport flags)
 {
     this.listBindable = flags != BindableSupport.No;
     this.isDefault    = flags == BindableSupport.Default;
 }
 public ListBindableAttribute(BindableSupport flags)
 {
 }
예제 #14
0
 // Constructor.
 public BindableAttribute(BindableSupport flags)
 {
     bind = (flags != BindableSupport.No);
     def  = (flags == BindableSupport.Default);
 }
 public BindableAttribute(BindableSupport flags) : this(flags, BindingDirection.OneWay)
 {
 }
	public BindableAttribute(BindableSupport flags, BindingDirection direction) {}
 public BindableAttribute(BindableSupport flags, BindingDirection direction)
 {
 }
	// Constructor.
	public BindableAttribute(BindableSupport flags)
			{
				bind = (flags != BindableSupport.No);
				def = (flags == BindableSupport.Default);
			}
	public ListBindableAttribute(BindableSupport flags)
			{
				this.flags = flags;
			}
	// Constructors.
	public ListBindableAttribute(bool listBindable)
			{
				this.flags = (listBindable ? BindableSupport.Yes
										   : BindableSupport.No);
			}
 public BindableAttribute(BindableSupport flags, BindingDirection direction)
 {
     this.bindable = flags != BindableSupport.No;
     this.isDefault = flags == BindableSupport.Default;
     this.direction = direction;
 }
예제 #22
0
 /// <summary>
 /// <para>
 /// Initializes a new instance of the <see cref='System.ComponentModel.BindableAttribute'/> class.
 /// </para>
 /// </summary>
 public BindableAttribute(BindableSupport flags, BindingDirection direction)
 {
     Bindable = (flags != BindableSupport.No);
     _isDefault = (flags == BindableSupport.Default);
     Direction = direction;
 }
예제 #23
0
 /// <summary>
 ///    <para>[To be supplied.]</para>
 /// </summary>
 public ListBindableAttribute(BindableSupport flags)
 {
     ListBindable = (flags != BindableSupport.No);
     _isDefault   = (flags == BindableSupport.Default);
 }
예제 #24
0
 public BindableAttribute(BindableSupport flags, BindingDirection direction) : this(flags)
 {
     this.direction = direction;
 }
예제 #25
0
 /// <summary>
 /// Initializes a new instance of the <see cref='System.ComponentModel.BindableAttribute'/> class.
 /// </summary>
 public BindableAttribute(BindableSupport flags, BindingDirection direction)
 {
     Bindable   = (flags != BindableSupport.No);
     _isDefault = (flags == BindableSupport.Default);
     Direction  = direction;
 }
예제 #26
0
 /// <include file='doc\BindableAttribute.uex' path='docs/doc[@for="BindableAttribute.BindableAttribute1"]/*' />
 /// <devdoc>
 ///    <para>
 ///       Initializes a new instance of the <see cref='System.ComponentModel.BindableAttribute'/> class.
 ///    </para>
 /// </devdoc>
 public BindableAttribute(BindableSupport flags)
 {
     this.bindable  = (flags != BindableSupport.No);
     this.isDefault = (flags == BindableSupport.Default);
 }
예제 #27
0
 /// <summary>
 /// Initializes a new instance of the <see cref='System.ComponentModel.BindableAttribute'/> class.
 /// </summary>
 public BindableAttribute(BindableSupport flags) : this(flags, BindingDirection.OneWay)
 {
 }
 public ListBindableAttribute(BindableSupport flags)
 {
 }
예제 #29
0
 /// <devdoc>
 ///    <para>[To be supplied.]</para>
 /// </devdoc>
 public ListBindableAttribute(BindableSupport flags) {
     this.listBindable = (flags != BindableSupport.No);
     this.isDefault = (flags == BindableSupport.Default);
 }
 public BindableAttribute(BindableSupport flags, BindingDirection direction)
 {
     this.bindable  = flags != BindableSupport.No;
     this.isDefault = flags == BindableSupport.Default;
     this.direction = direction;
 }