Exemple #1
0
        /// <summary>
        /// Let users provide their own print function for specific a control type
        /// </summary>
        /// <param name="stringType">Control type name</param>
        /// <param name="printFunction">function (must match with FormReportPrinter.ControlPrinting delegate)</param>
        public void AddPrintDelegateControl(string inControlTypeName, ControlPrinting inPrintFunction)
        {
            PrintDelegateControl curDelegate = new PrintDelegateControl();

            curDelegate.TypeName      = inControlTypeName;
            curDelegate.PrintFunction = inPrintFunction;
            myPrintDelegates.Add(curDelegate);
        }
 /// <summary>
 /// Let users provide their own print function for specific control type
 /// </summary>
 /// <param name="stringType">Control type name</param>
 /// <param name="printFunction">function (must match with FormPrinting.ControlPrinting delegate)</param>
 public void AddDelegateToPrintControl(string stringType, ControlPrinting printFunction)
 {
     _DelegateforControls d = new _DelegateforControls();
     d.typ = stringType;
     d.PrintFunction = printFunction;
     _DelegatesforControls.Add(d);
 }
 /// <summary>
 /// Let users provide their own print function for specific a control type
 /// </summary>
 /// <param name="stringType">Control type name</param>
 /// <param name="printFunction">function (must match with FormReportPrinter.ControlPrinting delegate)</param>
 public void AddPrintDelegateControl( string inControlTypeName, ControlPrinting inPrintFunction )
 {
     PrintDelegateControl curDelegate = new PrintDelegateControl();
     curDelegate.TypeName = inControlTypeName;
     curDelegate.PrintFunction = inPrintFunction;
     myPrintDelegates.Add( curDelegate );
 }