예제 #1
0
 public ShowtimeData()
 {
     Expiration = new Expiration();
     Movies = new List<Movie>();
     Theaters = new List<Theater>();
     Carteleras = new List<ShowtimeScheadule>();
 }
예제 #2
0
 private Expiration ReadExpiration(XmlReader reader)
 {
     var v = new Expiration();
     while (reader.Read() && reader.Name != "vigencia" || reader.NodeType != XmlNodeType.EndElement)
     {
         var culture = new CultureInfo("en-US");
         if (reader.Name == "de" && reader.NodeType != XmlNodeType.EndElement)
             v.From = DateTime.ParseExact(reader.GetAttribute("fecha").Trim(), "MM/dd/yyyy", culture);
         if (reader.Name == "hasta" && reader.NodeType != XmlNodeType.EndElement)
             v.Until = DateTime.ParseExact(reader.GetAttribute("fecha").Trim(), "MM/dd/yyyy", culture);
     }
     return v;
 }