Ejemplo n.º 1
0
 internal override DetailsTemplateControl.ControlFlags GetControlFlags()
 {
     DetailsTemplateControl.ControlFlags originalFlags = this.OriginalFlags;
     DetailsTemplateControl.SetBitField(!this.ReadOnly, DetailsTemplateControl.ControlFlags.ReadOnly, ref originalFlags);
     DetailsTemplateControl.SetBitField(this.Multiline, DetailsTemplateControl.ControlFlags.Multiline, ref originalFlags);
     DetailsTemplateControl.SetBitField(this.UseSystemPasswordChar, DetailsTemplateControl.ControlFlags.UseSystemPasswordChar, ref originalFlags);
     DetailsTemplateControl.SetBitField(this.ConfirmationRequired, DetailsTemplateControl.ControlFlags.ConfirmationRequired, ref originalFlags);
     return(originalFlags);
 }
Ejemplo n.º 2
0
        internal override DetailsTemplateControl.ControlFlags GetControlFlags()
        {
            DetailsTemplateControl.ControlFlags originalFlags = this.OriginalFlags;
            bool flag  = this.scrollBars == ScrollBars.Both || this.scrollBars == ScrollBars.Vertical;
            bool flag2 = this.scrollBars == ScrollBars.Both || this.scrollBars == ScrollBars.Horizontal;

            DetailsTemplateControl.SetBitField(!flag, DetailsTemplateControl.ControlFlags.ReadOnly, ref originalFlags);
            DetailsTemplateControl.SetBitField(!flag2, DetailsTemplateControl.ControlFlags.Multiline, ref originalFlags);
            return(originalFlags);
        }