Example #1
0
 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();
 }
Example #2
0
 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();
 }