Ejemplo n.º 1
0
        public void runOrder()                                   //event handler
        {
            string     order       = Program.mcb.getOneCell();   //retrieves the order from the MultiCellBuffer
            OrderClass orderObject = encodeDecode.decode(order); //decodes the string
            Thread     thread      = new Thread(() => OrderProcessing.processOrder(orderObject, getPrice()));

            thread.Start(); //starts the order processing thread
        }
Ejemplo n.º 2
0
        public void runOrder()                                   //event handler
        {
            string order = Program.mcb.getOneCell();             //retrieves the order from the MultiCellBuffer

            var        output      = order.Split(new[] { ':' }); //splits the string with the colons
            OrderClass orderObject = new OrderClass(output[0], Convert.ToInt32(output[1]), Convert.ToInt32(output[2]), Convert.ToInt32(output[3]));

            Thread thread = new Thread(() => OrderProcessing.processOrder(orderObject, getPrice()));

            thread.Start(); //starts the order processing thread
        }