public override bool Equals(object obj)
        {
            if (obj == this)
            {
                return(true);
            }
            DesignTimeVisibleAttribute attribute = obj as DesignTimeVisibleAttribute;

            return((attribute != null) && (attribute.Visible == this.visible));
        }
Exemple #2
0
        /// <include file='doc\DesignTimeVisibleAttribute.uex' path='docs/doc[@for="DesignTimeVisibleAttribute.Equals"]/*' />
        /// <devdoc>
        ///    <para>[To be supplied.]</para>
        /// </devdoc>
        public override bool Equals(object obj)
        {
            if (obj == this)
            {
                return(true);
            }

            DesignTimeVisibleAttribute other = obj as DesignTimeVisibleAttribute;

            return(other != null && other.Visible == visible);
        }
 /// <summary>
 /// Add our designtimevisible attribute to the attributes for the item
 /// </summary>
 /// <param name="attributes"></param>
 protected override void PreFilterAttributes(System.Collections.IDictionary attributes)
 {
     base.PreFilterAttributes(attributes);
       DesignTimeVisibleAttribute att = new DesignTimeVisibleAttribute(((DbCommand)Component).DesignTimeVisible);
       attributes[att.TypeId] = att;
 }