private void LoadServiceCodes() { MerchantTribe.Shipping.IShippingService ups = AvailableServices.FindById(ShippingMethod.ShippingProviderId, MyPage.MTApp.CurrentStore); this.ShippingTypesCheckBoxList.DataSource = ups.ListAllServiceCodes(); this.ShippingTypesCheckBoxList.DataTextField = "DisplayName"; this.ShippingTypesCheckBoxList.DataValueField = "Code"; this.ShippingTypesCheckBoxList.DataBind(); }
private void LoadServices() { MerchantTribe.Shipping.IShippingService uspostal = AvailableServices.FindById(WebAppSettings.ShippingUSPostalDomesticId, MTApp.CurrentStore); this.lstServiceTypes.DataSource = uspostal.ListAllServiceCodes(); this.lstServiceTypes.DataTextField = "DisplayName"; this.lstServiceTypes.DataValueField = "Code"; this.lstServiceTypes.DataBind(); }