Пример #1
0
 public void SetDependencies(ReportParameterInfoCollection coll)
 {
     if (this.m_dependencyCollection == null)
     {
         if (this.m_dependencies == null)
         {
             this.m_dependencyCollection = new ReportParameterInfoCollection();
         }
         else
         {
             List <ReportParameterInfo> list = new List <ReportParameterInfo>();
             string[] dependencies           = this.m_dependencies;
             foreach (string name in dependencies)
             {
                 ReportParameterInfo reportParameterInfo = coll[name];
                 if (reportParameterInfo != null)
                 {
                     list.Add(reportParameterInfo);
                     reportParameterInfo.m_dependentsCollectionConstruction.Add(this);
                 }
             }
             this.m_dependencyCollection = new ReportParameterInfoCollection(list);
         }
     }
 }
Пример #2
0
 private bool IsParamVisible(ReportParameterInfo param)
 {
     if (!param.PromptUser)
     {
         return(false);
     }
     if (!string.IsNullOrEmpty(param.Prompt))
     {
         return(param.Visible);
     }
     return(false);
 }