protected override void OnControlAdded(ControlEventArgs e)
        {
            ParameterLabel parameterLabel = e.Control as ParameterLabel;

            if (parameterLabel != null)
            {
                m_containedLabel = parameterLabel;
            }
        }
Exemplo n.º 2
0
        protected ParameterControl(ReportParameterInfo paramInfo, ToolTip tooltip, Font font, bool allowQueryExecution, GridLayoutCellDefinition cellDefinition)
        {
            m_paramInfo           = paramInfo;
            m_tooltip             = tooltip;
            Font                  = font;
            m_allowQueryExecution = allowQueryExecution;
            m_cellDefinition      = cellDefinition;
            base.Enabled          = (!ShouldDisableParam && !DisableQueryParameter);
            Label value = new ParameterLabel(m_paramInfo.Prompt);

            base.Controls.Add(value);
        }