Exemple #1
0
 private void ParseDeliveryRequests(XElement requestsNode)
 {
     foreach (XElement eachRequest in requestsNode.Elements("DeliveryRequest"))
     {
         var             id = eachRequest.AttrToGuid("Id");
         DeliveryRequest request;
         if (!this.DeliveryRequests.TryGetValue(id, out request))
         {
             request = new DeliveryRequest(this, eachRequest);
             this.DeliveryRequests.Add(id, request);
             _changedRequests.Add(request);
         }
         else
         {
             request.Update(eachRequest);
         }
     }
 }
 public DeliveryRequestOrderRelation(DeliveryRequest owner, XElement node)
 {
     this.Owner = owner;
     this.InitializeProperties(node);
 }