public List <YellowstonePathology.Business.Test.Model.DualStain> GetSelectedDualStains() { YellowstonePathology.Business.Test.Model.TestCollection testCollection = YellowstonePathology.Business.Test.Model.TestCollection.GetAllTests(); List <YellowstonePathology.Business.Test.Model.DualStain> result = new List <YellowstonePathology.Business.Test.Model.DualStain>(); YellowstonePathology.Business.Test.Model.DualStainCollection dualStainCollection = YellowstonePathology.Business.Test.Model.DualStainCollection.GetAll(); foreach (XElement element in this.m_OrderItemElementList) { if (element.Element("ItemType").Value == "DualStain") { if (element.Element("Order").Value == "True") { int testId = Convert.ToInt32(element.Element("Id").Value); YellowstonePathology.Business.Test.Model.DualStain dualStain = dualStainCollection.Get(testId); string testOrderComment = element.Element("Comment").Value; dualStain.OrderComment = testOrderComment; result.Add(dualStain); } } } return(result); }