private void showDeliveryInfo(bool showCartons) { //Clear and validate this.grdDelivery.SelectedObject = null; if (this.mIssue != null) { //Display delivery info EnterpriseDS delivery = EnterpriseFactory.GetDelivery(this.mIssue.CompanyID, this.mIssue.StoreNumber, this.mIssue.OFD1FromDate, this.mIssue.OFD1ToDate, this.mIssue.PROID); if (delivery.DeliveryTable.Rows.Count > 0) { this.grdDelivery.SelectedObject = new DeliveryInfo(delivery.DeliveryTable[0]); } if (showCartons) { EnterpriseDS osdscans = EnterpriseFactory.GetOSDScans(this.mIssue.PROID); this.oSDScanTableBindingSource.DataSource = osdscans; EnterpriseDS podscans = EnterpriseFactory.GetPODScans(this.mIssue.PROID); this.pODScanTableBindingSource.DataSource = podscans; } } }