/// <summary> /// Saves state data. /// </summary> protected override void SavePageData() { InsuranceInfo I = (InsuranceInfo)Order["Insurance"]; if (I == null) { I = new InsuranceInfo(); Order.Products.Add(I); } I.Lines = (ArrayOfInsuranceLineItem)Items.CopyTo(new ArrayOfInsuranceLineItem()); Order.UpdateLines("Insurance"); }