예제 #1
0
        /// <summary>
        /// Constructs a well formed Document Object Model for a group of orders on a block order.
        /// </summary>
        /// <param name="blockOrderId">The block order for which we want a order document.</param>
        public OrderDocument(int blockOrderId, LocalOrderSet localOrderSet)
        {
            // Create the root element for the document.
            XmlElement rootElement = this.CreateElement("Order");

            this.AppendChild(rootElement);

            // Add each of the orders to the document.
            foreach (LocalOrderSet.OrderRow orderRow in localOrderSet.Order)
            {
                rootElement.AppendChild(CreateLocalOrderElement(orderRow));
            }

            // The placeholder is where new orders will be added.
            rootElement.AppendChild(CreatePlaceholderElement());
        }
예제 #2
0
 /// <summary>
 /// Constructor used to pass argument to the 'OrderRefresh' thread.
 /// </summary>
 public DrawArgs(LocalOrderSet localOrderSet)
 {
     // Initialize the class members.
     this.localOrderSet = localOrderSet;
 }