Exemplo n.º 1
0
        private void Initialize(BocDateTimeValueRenderingContext renderingContext, TextBox textBox, SingleRowTextBoxStyle textBoxStyle, int maxLength)
        {
            textBox.Enabled  = renderingContext.Control.Enabled;
            textBox.ReadOnly = !renderingContext.Control.Enabled;
            textBox.Width    = Unit.Empty;
            textBox.Height   = Unit.Empty;
            textBox.ApplyStyle(renderingContext.Control.CommonStyle);
            renderingContext.Control.DateTimeTextBoxStyle.ApplyStyle(textBox);
            textBoxStyle.ApplyStyle(textBox);

            if (renderingContext.Control.ProvideMaxLength)
            {
                textBox.MaxLength = maxLength;
            }
        }
        // construction and disposing

        public BocAutoCompleteReferenceValue()
        {
            _textBoxStyle = new SingleRowTextBoxStyle();
            _searchServiceContextFromPreviousLifeCycle = SearchAvailableObjectWebServiceContext.Create(null, null, null);
        }