예제 #1
0
        private void RobotPick()
        {
            if (_nests[4, 0] != null)
            {
                Strip[] strips = new Strip[Cavities];
                for (int i = 0; i < strips.Length; i++)
                {
                    strips[i] = _nests[4, i];
                }

                System.Console.WriteLine("Placing strips in the moulder");
                Thread.Sleep(1500);
                _moulder.Add(strips);
            }
        }
        private async Task PickStripsAsync()
        {
            if (_nests[4, 0] != null)
            {
                Strip[] strips = new Strip[Cavities];
                for (int i = 0; i < strips.Length; i++)
                {
                    strips[i] = _nests[4, i];
                }

                System.Console.WriteLine("Placing strips in the moulder");
                await Task.Delay(1500);

                _moulder.Add(strips);
            }
        }