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