private void RenderAddShippingView() { FetchShippingModel(); ShowCheckboxes(); ////Pull in the right AddressWindow definition (declarative controlset) from XML and load them ordering.AddressBase shippingAddressCtrl = getShippingControl(colNewShippingAddress); IShippingProvider shippingProvider = (Page as ProductsBase).GetShippingProvider(); //set default data context & put it in session //ShippingAddress_V02 shipAddr = new ShippingAddress_V02(); //shipAddr.Address = new Address_V01(); //shipAddr.Address.Country = CountryCode; var shipAddr = shippingProvider.GetDefaultAddress() as ShippingAddress_V02; if (null != shippingAddressCtrl) { if (ShoppingCart.IsFromInvoice) { shippingAddressCtrl.DataContext = WorkedUponAddress; } else { shippingAddressCtrl.DataContext = shipAddr; } } shipAddr.Address.Country = CountryCode; if (null == ShippingAddresses || ShippingAddresses.Count == 0) //Eval UC:3.5.3.1 (no existing saved address) { //Both “Save this shipping address” and “Make this my primary shipping address” are checked. // The actor cannot uncheck either checkboxes cbMakePrimary.Checked = true; cbMakePrimary.Enabled = false; cbSaveThis.Checked = true; cbSaveThis.Enabled = false; } else //Eval UC:3.5.3.2 (atleast 1 address exists) { cbMakePrimary.Checked = false; cbMakePrimary.Enabled = true; cbSaveThis.Checked = true; cbSaveThis.Enabled = Locale == "de-DE" ? false : true; } //If the popup is called from “Order Preference” section, then 'Save' button is invisible. if (hfDiableSavedCheckbox.Value.ToLower().Equals("true")) { cbSaveThis.Visible = false; } }