コード例 #1
0
        MatrixCells _MatrixCells; // The set of cells in a row in the detail section of the Matrix.

        #endregion Fields

        #region Constructors

        internal MatrixRow(ReportDefn r, ReportLink p, XmlNode xNode)
            : base(r, p)
        {
            _Height=null;
            _MatrixCells=null;

            // Loop thru all the child nodes
            foreach(XmlNode xNodeLoop in xNode.ChildNodes)
            {
                if (xNodeLoop.NodeType != XmlNodeType.Element)
                    continue;
                switch (xNodeLoop.Name)
                {
                    case "Height":
                        _Height = new RSize(r, xNodeLoop);
                        break;
                    case "MatrixCells":
                        _MatrixCells = new MatrixCells(r, this, xNodeLoop);
                        break;
                    default:
                        break;
                }
            }
            if (_MatrixCells == null)
                OwnerReport.rl.LogError(8, "MatrixRow requires the MatrixCells element.");
        }
コード例 #2
0
        MatrixCells _MatrixCells; // The set of cells in a row in the detail section of the Matrix.

        internal MatrixRow(ReportDefn r, ReportLink p, XmlNode xNode) : base(r, p)
        {
            _Height      = null;
            _MatrixCells = null;

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

                case "MatrixCells":
                    _MatrixCells = new MatrixCells(r, this, xNodeLoop);
                    break;

                default:
                    break;
                }
            }
            if (_MatrixCells == null)
            {
                OwnerReport.rl.LogError(8, "MatrixRow requires the MatrixCells element.");
            }
        }