Exemplo n.º 1
0
        static void MoveBox()
        {
            try
            {
                int id       = GetId(false);
                int position = -1;
                Console.WriteLine("Enter the new location for your box.");
                if (ManualPos())
                {
                    position = GetManualLocation();
                }
                else
                {
                    var box = _wareHouse.GetBoxByID(id);
                    position = GetAutomaticLocation(box);
                }



                _wareHouse.MoveBox(id, position);
                Console.Clear();
                Console.WriteLine("The box was moved succesfully");
                Console.ReadLine();
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
                Console.ReadLine();
            }
        }