private void InitIntlShippingServiceOptions() { ShippingServiceCodeType[] options = new ShippingServiceCodeType[] { ShippingServiceCodeType.StandardInternational, ShippingServiceCodeType.ExpeditedInternational, ShippingServiceCodeType.USPSGlobalExpress, ShippingServiceCodeType.USPSGlobalPriority, ShippingServiceCodeType.USPSEconomyParcel, ShippingServiceCodeType.USPSEconomyLetter, ShippingServiceCodeType.USPSAirmailLetter, ShippingServiceCodeType.USPSAirmailParcel, ShippingServiceCodeType.UPSWorldWideExpressPlus, ShippingServiceCodeType.UPSWorldWideExpress, ShippingServiceCodeType.UPSWorldWideExpedited, ShippingServiceCodeType.UPSStandardToCanada, ShippingServiceCodeType.OtherInternational }; int len = options.Length; ControlTagItem[] items = new ControlTagItem[len]; for (int i = 0; i < len; i++) { items[i] = new ControlTagItem(options[i].ToString(), options[i]); } this.htIntlShippingServiceControlTagItems.Add(SiteCodeType.US, items); }
private void InitShippingServiceOptions() { ShippingServiceCodeType[] options = new ShippingServiceCodeType[] { ShippingServiceCodeType.UPSGround, ShippingServiceCodeType.UPS3rdDay, ShippingServiceCodeType.UPS2ndDay, ShippingServiceCodeType.UPSNextDay, ShippingServiceCodeType.USPSPriority, ShippingServiceCodeType.USPSParcel, ShippingServiceCodeType.USPSMedia, ShippingServiceCodeType.USPSFirstClass, ShippingServiceCodeType.ShippingMethodStandard, ShippingServiceCodeType.ShippingMethodExpress, ShippingServiceCodeType.USPSExpressMail, ShippingServiceCodeType.UPSNextDayAir, ShippingServiceCodeType.UPS2DayAirAM, ShippingServiceCodeType.LocalDelivery, ShippingServiceCodeType.Other }; int len = options.Length; ControlTagItem[] items = new ControlTagItem[len]; for (int i = 0; i < len; i++) { items[i] = new ControlTagItem(options[i].ToString(), options[i]); } this.htFlatRateShippingServiceControlTagItems.Add(SiteCodeType.US, items); this.htCalcRateShippingServiceControlTagItems.Add(SiteCodeType.US, items); }
private void InitShippingServiceOptions() { ShippingServiceCodeType[] options = new ShippingServiceCodeType[] { ShippingServiceCodeType.UPSGround, ShippingServiceCodeType.UPS3rdDay, ShippingServiceCodeType.UPS2ndDay, ShippingServiceCodeType.UPSNextDay, ShippingServiceCodeType.USPSPriority, ShippingServiceCodeType.USPSParcel, ShippingServiceCodeType.USPSMedia, ShippingServiceCodeType.USPSFirstClass, ShippingServiceCodeType.ShippingMethodStandard, ShippingServiceCodeType.ShippingMethodExpress, ShippingServiceCodeType.USPSExpressMail, ShippingServiceCodeType.UPSNextDayAir, ShippingServiceCodeType.UPS2DayAirAM, ShippingServiceCodeType.LocalDelivery, ShippingServiceCodeType.Other}; int len = options.Length; ControlTagItem[] items = new ControlTagItem[len]; for (int i = 0; i < len; i++) { items[i] = new ControlTagItem(options[i].ToString(), options[i]); } this.htFlatRateShippingServiceControlTagItems.Add(SiteCodeType.US, items); this.htCalcRateShippingServiceControlTagItems.Add(SiteCodeType.US, items); }