Beispiel #1
0
        private string getOwnerName()
        {
            ConsoleMsg.CostumerName();
            string ownersName = Console.ReadLine();

            while (!ValidationInput.CheckOwnersName(ownersName))
            {
                ConsoleMsg.CostumerName();
                ownersName = Console.ReadLine();
            }

            return(ownersName);
        }
Beispiel #2
0
        private int getCargoCapacity()
        {
            ConsoleMsg.CargoCapacity();
            string cargoCapacity = Console.ReadLine();

            while (!ValidationInput.CheckCapacity(cargoCapacity))
            {
                ConsoleMsg.CostumerName();
                cargoCapacity = Console.ReadLine();
            }

            int result;

            int.TryParse(cargoCapacity, out result);
            return(result);
        }