Пример #1
0
 private Container ProcessContainers(ContainerCollection contCollection, string name, Order order, Container parent)
 {
     if (contCollection.Exists(name) == false)
     {
         contCollection[name] = new OME.Storage.Container(this, name, parent);
     }
     OME.Storage.Container currentContainer = contCollection[name];
     currentContainer.ProcessOrder(order);
     return(currentContainer);
 }
Пример #2
0
        private Container ProcessContainers(ContainerCollection contCollection, string name, Order order, Container parent)
        {
            //Check for presence of this specific container
            //in case it is not found then create a new container
            if (contCollection.Exists(name) == false)
            {
                contCollection[name] = new OME.Storage.Container(this, name, parent);
            }

            OME.Storage.Container currentContainer = contCollection[name];
            //invoke the order processing on that container
            currentContainer.ProcessOrder(order);
            return(currentContainer);
        }
Пример #3
0
 public OrderBook()
 {
     bookRoot = new ContainerCollection();
 }
Пример #4
0
 public OrderBook()
 {
     //instantiate the root container of the order tree
     bookRoot = new ContainerCollection();
 }