private void Print_OnAttachExport(object sender, EventArgs e)
        {
            if (m_print == null || m_Entity == null)
            {
                return;
            }
            Print print = new Print();

            print.SetPrintAttachExport(m_print, m_Entity);
        }
        private void ucPrint_OnAttachExport(object sender, EventArgs e)
        {
            UC_Print ucPrint = sender as UC_Print;
            Print    print   = new Print();
            B_PF     cEntity = null;

            //SetEntity(cEntity);
            if (base.IsPreview)
            {
                cEntity = base.EntityData != null ? base.EntityData as B_PF : new B_PF();
            }
            else
            {
                cEntity = this.ControlToEntity(false) as B_PF;
            }
            print.SetPrintAttachExport(ucPrint, cEntity);
        }
 private void ucPrint_OnAttachExport(object sender, EventArgs e)
 {
     UC_Print ucPrint = sender as UC_Print;
     Print print = new Print();
     B_PF cEntity = null;
     //SetEntity(cEntity);
     if (base.IsPreview)
     {
         cEntity = base.EntityData != null ? base.EntityData as B_PF : new B_PF();
     }
     else
     {
         cEntity = this.ControlToEntity(false) as B_PF;
     }
     print.SetPrintAttachExport(ucPrint, cEntity);
 }
        private void Print_OnAttachExport(object sender, EventArgs e)
        {
            if (m_print == null || m_Entity == null) return;
            Print print = new Print();

            print.SetPrintAttachExport(m_print, m_Entity);
        }