Style _Style;					// border and background properties for series legend itmes and data points
										//   when dynamic exprs are evaluated per group instance
	
		internal SeriesGrouping(ReportDefn r, ReportLink p, XmlNode xNode) : base(r, p)
		{
			_DynamicSeries=null;
			_StaticSeries=null;
			_Style=null;

			// Loop thru all the child nodes
			foreach(XmlNode xNodeLoop in xNode.ChildNodes)
			{
				if (xNodeLoop.NodeType != XmlNodeType.Element)
					continue;
				switch (xNodeLoop.Name)
				{
					case "DynamicSeries":
						_DynamicSeries = new DynamicSeries(r, this, xNodeLoop);
						break;
					case "StaticSeries":
						_StaticSeries = new StaticSeries(r, this, xNodeLoop);
						break;
					case "Style":
						_Style = new Style(OwnerReport, this, xNodeLoop);
						OwnerReport.rl.LogError(4, "Style element in SeriesGrouping is currently ignored."); // TODO
						break;
					default:	
						// don't know this element - log it
						OwnerReport.rl.LogError(4, "Unknown SeriesGrouping element '" + xNodeLoop.Name + "' ignored.");
						break;
				}
			}
		}
Exemple #2
0
        Style _Style;                           // border and background properties for series legend itmes and data points
        //   when dynamic exprs are evaluated per group instance

        internal SeriesGrouping(ReportDefn r, ReportLink p, XmlNode xNode) : base(r, p)
        {
            _DynamicSeries = null;
            _StaticSeries  = null;
            _Style         = null;

            // Loop thru all the child nodes
            foreach (XmlNode xNodeLoop in xNode.ChildNodes)
            {
                if (xNodeLoop.NodeType != XmlNodeType.Element)
                {
                    continue;
                }
                switch (xNodeLoop.Name)
                {
                case "DynamicSeries":
                    _DynamicSeries = new DynamicSeries(r, this, xNodeLoop);
                    break;

                case "StaticSeries":
                    _StaticSeries = new StaticSeries(r, this, xNodeLoop);
                    break;

                case "Style":
                    _Style = new Style(OwnerReport, this, xNodeLoop);
                    OwnerReport.rl.LogError(4, "Style element in SeriesGrouping is currently ignored.");                             // TODO
                    break;

                default:
                    // don't know this element - log it
                    OwnerReport.rl.LogError(4, "Unknown SeriesGrouping element '" + xNodeLoop.Name + "' ignored.");
                    break;
                }
            }
        }