internal ReportParameterCollection(ParameterDefList parameterDefs, Microsoft.ReportingServices.ReportRendering.ReportParameterCollection paramValues)
 {
     m_parameters = new List <ReportParameter>(parameterDefs.Count);
     for (int i = 0; i < parameterDefs.Count; i++)
     {
         if (parameterDefs[i].PromptUser)
         {
             m_parameters.Add(new ReportParameter(parameterDefs[i]));
         }
     }
     UpdateRenderReportItem(paramValues);
 }
        internal void UpdateRenderReportItem(Microsoft.ReportingServices.ReportRendering.ReportParameterCollection paramValues)
        {
            int count = m_parameters.Count;

            if (paramValues != null && paramValues.Count != count)
            {
                paramValues = null;
            }
            for (int i = 0; i < count; i++)
            {
                if (paramValues == null)
                {
                    m_parameters[i].UpdateRenderReportItem(null);
                }
                else
                {
                    m_parameters[i].UpdateRenderReportItem(paramValues[i]);
                }
            }
        }