private void PrintDocument_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e) { int count = 1; int x = 3; int y = 8; for (int i = 0; i < 4; i++) { SlideLabel slideLabel = this.m_SlideLabelQueue.Dequeue(); slideLabel.DrawLabel(x, y, e); slideLabel.AliquotOrder.Printed = true; x = x + 106; count += 1; if (this.m_SlideLabelQueue.Count == 0) { break; } } if (this.m_SlideLabelQueue.Count == 0) { e.HasMorePages = false; } else { e.HasMorePages = true; } }
private void Initialize() { this.m_SlideLabelQueue = new Queue <SlideLabel>(); foreach (YellowstonePathology.Business.Test.AliquotOrder aliquotOrder in this.m_AliquotOrderCollection) { if (aliquotOrder.IsSlide() == true) { if (aliquotOrder.LabelType == YellowstonePathology.Business.Specimen.Model.AliquotLabelType.PaperLabel == true) { SlideLabel slideLabel = new SlideLabel(aliquotOrder, this.m_AccessionOrder); this.m_SlideLabelQueue.Enqueue(slideLabel); } } } }
private void Initialize() { this.m_SlideLabelQueue = new Queue<SlideLabel>(); foreach (YellowstonePathology.Business.Test.AliquotOrder aliquotOrder in this.m_AliquotOrderCollection) { if (aliquotOrder.IsSlide() == true) { if (aliquotOrder.LabelType == YellowstonePathology.Business.Specimen.Model.AliquotLabelType.PaperLabel == true) { SlideLabel slideLabel = new SlideLabel(aliquotOrder, this.m_AccessionOrder); this.m_SlideLabelQueue.Enqueue(slideLabel); } } } }