Esempio n. 1
0
 private void button1_Click(object sender, EventArgs e)
 {
     Task.Run(() => { MESClient.GetNewOrder().Wait(); Task.Delay(new TimeSpan(0, 0, 20)).Wait(); MESClient.finishOrder(true).Wait(); });
 }
Esempio n. 2
0
        public async Task sendNewOrder()
        {
            var newOrder = await MESClient.GetNewOrder();

            sendString($"o{newOrder.blue}{newOrder.red}{newOrder.yellow}");
        }