Example #1
0
        private void EditBoatLength(int choosenMemberId, int boatNr)
        {
            string inputLength = bv.IfEditBoatLength();

            if (inputLength == "y")
            {
                float length = bv.EditBoatLength();
                be.EditBoatLength(choosenMemberId, boatNr, length);
                v.ConfirmMessage("Boat length changed.");
            }
            else if (inputLength == "n")
            {
                return;
            }
            else
            {
                v.ViewErrorMessage("Type 'y' for yes or 'n' for no. Try again.");
                return;
            }
        }