protected override void OnControlAdded(ControlEventArgs e) { ParameterLabel parameterLabel = e.Control as ParameterLabel; if (parameterLabel != null) { m_containedLabel = parameterLabel; } }
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); }