public void FillContainerInfo(string containerName) { using (QueryContainer qc = new QueryContainer()) { Container co = qc.GetContainer(containerName); if (co != null) { txtContainerQty.Text = co.Qty.ToString(); txtProduct.Text = co.Product.DisplayName; txtContainerStatus.Text = co.ContainerStatus.DisplayName; txtContainerStep.Text = co.CurrentStatus.WorkflowStep.DisplayName; } } }