Пример #1
0
 protected void initlboxStationAllByID()
 {
     lboxStationAll.Items.Clear();
     if (mAllStation != null)
     {
         mAllStation = null;
     }
     mAllStation = dbll.getStationsInfo();
     for (int i = 0; i < mAllStation.Length; i++)
     {
         if (mAllStation[i].StationID == 0)
         {
             continue;
         }
         ListItem liAllStation = new ListItem();
         liAllStation.Value = mAllStation[i].StationID.ToString() + "#" + mAllStation[i].StationTableID.ToString();
         liAllStation.Text  = mAllStation[i].StationName + "(" + mAllStation[i].StationID.ToString() + ")";
         lboxStationAll.Items.Add(liAllStation);
     }
 }