Пример #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="XtraGridPrintAdapter"/> class.
        /// </summary>
        /// <param name="adaptee">The adaptee.</param>
        /// <param name="workItem">The work item.</param>
        public XtraGridPrintAdapter(GridControl adaptee, WorkItem workItem)
        {
            this.adaptee  = adaptee;
            this.workItem = workItem;
            xtrapService  = new XtraPrintService(adaptee, adaptee.DefaultView.ViewCaption);

            RegisterEvent();
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="XtraGridPrintAdapter"/> class.
        /// </summary>
        /// <param name="adaptee">The adaptee.</param>
        /// <param name="workItem">The work item.</param>
        public XtraGridPrintAdapter(GridControl adaptee, WorkItem workItem)
        {
            this.adaptee = adaptee;
            this.workItem = workItem;
            xtrapService = new XtraPrintService(adaptee, adaptee.DefaultView.ViewCaption);

            RegisterEvent();
        }
Пример #3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="XtraTreeListPrintAdapter"/> class.
        /// </summary>
        /// <param name="adaptee">The adaptee.</param>
        /// <param name="workItem">The work item.</param>
        public XtraTreeListPrintAdapter(TreeList adaptee, WorkItem workItem)
        {
            this.adaptee  = adaptee;
            this.workItem = workItem;
            xtrapService  = new XtraPrintService(adaptee, adaptee.Text);

            RegisterEvent();
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="XtraTreeListPrintAdapter"/> class.
        /// </summary>
        /// <param name="adaptee">The adaptee.</param>
        /// <param name="workItem">The work item.</param>
        public XtraTreeListPrintAdapter(TreeList adaptee, WorkItem workItem)
        {
            this.adaptee = adaptee;
            this.workItem = workItem;
            xtrapService = new XtraPrintService(adaptee, adaptee.Text);

            RegisterEvent();
        }