private void FillCarrierDDl(DropDownList ddlCar, CarrierList carrierList)
 {
     foreach (Carrier carrier in carrierList)
     {
         String itemText = string.Empty;
         ddlCar.Items.Add(new ListItem(GetCarrierText(carrier.Type), Convert.ToString((int)carrier.Type)));
     }
 }
Exemple #2
0
 private void FillCarrierDDl(DropDownList ddlCar, CarrierList carrierList)
 {
     foreach (Carrier carrier in carrierList)
     {
         if (carrier.Type != CarrierType.None)
         {
             ListItem lst = new ListItem(GetCarrierText(carrier.Type), Convert.ToString((int)carrier.Type));
             ddlCar.Items.Add(lst);
         }
     }
 }
 public void RemoveCarrierFromNode(object obj)
 {
     CarrierList.Remove(obj);
 }