protected internal virtual void OnPrintRecordCell(PrintRecordCellEventArgs e)
        {
            this.RunEventScriptAndExpressionBindings <PrintRecordCellEventArgs>(PrintRecordCellEvent, "PrintRecordCell", e);
            PrintRecordCellEventHandler handler = (PrintRecordCellEventHandler)base.Events[PrintRecordCellEvent];

            if (!base.DesignMode)
            {
                if (handler != null)
                {
                    handler(this, e);
                }
            }
        }
Exemple #2
0
        protected virtual BrickStyle CreateBrickStyle(XRDataContainerControl control, VisualBrick parentBrick, VisualBrick valueBrick, XRDataRecord record, int fieldIndex, bool isHeader)
        {
            BrickStyle style = GetActualBrickStyle((DataContainerBrick)parentBrick, isHeader);

            if (isHeader)
            {
                PrintCellEventArgs printCellArgs = new PrintCellEventArgs(control.VisibleHeaders[fieldIndex], valueBrick, style);
                ContainerControl.OnPrintHeaderCell(printCellArgs);
                ((IDataCellBrick)valueBrick).CellPosition |= XRDataCellPosition.Header;
            }
            else
            {
                PrintRecordCellEventArgs printCellArgs = new PrintRecordCellEventArgs(record, control.VisibleHeaders[fieldIndex], valueBrick, style);
                ContainerControl.OnPrintRecordCell(printCellArgs);
            }

            return(style);
        }