/// <summary> /// Creates a Placement Element. /// </summary> /// <param name="blockOrderDocument">The parent document of this Xml Node.</param> /// <param name="placementRow">The placement record used to create the Xml Node.</param> public PlacementsElement(BlockOrderDocument blockOrderDocument, ClientMarketData.PlacementRow placementRow) : base("Placement", blockOrderDocument) { // Keep track of the record that created this element. this.placementRow = placementRow; // Apply the attributes to the element. AddAttribute("PlacementId", placementRow.PlacementId); AddAttribute("Quantity", placementRow.Quantity); AddAttribute("BrokerId", placementRow.BrokerId); AddAttribute("BrokerSymbol", placementRow.BrokerRow.Symbol); }
public PlacementsElement CreatePlacementsElement(ClientMarketData.PlacementRow orderRow) { return(new PlacementsElement(this, orderRow)); }