Пример #1
0
 public static void loadAllList()
 {
     String[] name = null;
     StationEntity se = null;
     foreach (String station in station_names)
     {
         name = station.Split('|');
         if(name != null && name.Length == 6){
             se = new StationEntity();
             se.name1 = name[0];
             se.name2 = name[1];
             se.name3 = name[2];
             se.name4 = name[3];
             se.name5 = name[4];
             se.code6 = name[5];
             allList.Add(se);
         }
     }
 }
Пример #2
0
 public static ArrayList GetVaterStationList()
 {
     if (avterList.Count == 0)
     {
         String[] name = null;
         StationEntity se = null;
         foreach (String station in favorite_names)
         {
             name = station.Split('|');
             if (name != null && name.Length == 4)
             {
                 se = new StationEntity();
                 se.name1 = name[0];
                 se.name2 = name[1];
                 se.name3 = name[2];
                 //se.name4 = name[3];
                 //se.name5 = name[4];
                 se.code6 = name[3];
                 avterList.Add(se);
             }
         }
     }
     return avterList;
 }