예제 #1
0
 public void setStation(XmlNode node)
 {
     if (node["StationId"] != null)
     {
         StationId = node["StationId"].InnerText;
     }
     if (node["DescriptionHe"] != null)
     {
         DescriptionHe = node["DescriptionHe"].InnerText;
     }
     if (node["DescriptionEn"] != null)
     {
         DescriptionEn = node["DescriptionEn"].InnerText;
     }
     if (node["InterChangeStation"] != null)
     {
         InterChangeStation = node["InterChangeStation"].InnerText;
     }
     if (node["StationKind"] != null)
     {
         StationKind = node["StationKind"].InnerText;
     }
     if (node["Parking"] != null)
     {
         Parking = node["Parking"].InnerText;
     }
     if (node["ParkingPay"] != null)
     {
         ParkingPay = node["ParkingPay"].InnerText;
     }
     if (node["Handicap"] != null)
     {
         Handicap = node["Handicap"].InnerText;
     }
     try
     {
         EngName = UtilMapping.GetEngName(int.Parse(StationId));
     }
     catch (Exception ex)
     {
     }
     try
     {
         Location = _locations[StationId];
     }
     catch (Exception ex)
     {
     }
 }
예제 #2
0
 public StationLang(XmlNode node) : base()
 {
     setStation(node);
     DescriptionArb = UtilMapping.DescriptionAr(int.Parse(StationId));
     ArbName        = UtilMapping.GetArrName(int.Parse(StationId));
 }