private void HandleEventAddNewBoat(Model.Member member, View.ConsoleView view, Model.MemberRegistry registry)
 {
     view.ShowInputInfo(View.MenuEvent.AddBoat, member);
     Model.Boat boat = new Model.Boat();
     boat.ID = registry.GetNextBoatIdFor(member);
     try
     {
         boat.Model = (Model.BoatModel)view.InputBoatModel();
     }
     catch (ArgumentException)
     {
         view.ShowErrorMessage(View.Error.InvalidBoatModel, null);
         view.Wait();
         return;
     }
     try
     {
         boat.Length = view.InputBoatLenght();
     }
     catch (ArgumentException)
     {
         view.ShowErrorMessage(View.Error.InvalidBoatLenght, null);
         view.Wait();
         return;
     }
     member.AddBoat(boat);
     registry.Save();
 }
        private void HandleEventShowEditBoatMenu(Model.Member member, Model.Boat boat,
                                                 View.ConsoleView view, Model.MemberRegistry registry)
        {
            while (true)
            {
                view.ShowMenu(View.MenuEvent.EditBoatMenu, member);
                switch (view.GetMenuSelection())
                {
                case View.MenuEvent.EditBoatModel:
                    view.ShowInputInfo(View.MenuEvent.EditBoatModel, member);
                    try
                    {
                        boat.Model = (Model.BoatModel)view.InputBoatModel();
                        registry.Save();
                    }
                    catch (ArgumentException)
                    {
                        view.ShowErrorMessage(View.Error.InvalidBoatModel, null);
                        view.Wait();
                        return;
                    }
                    break;

                case View.MenuEvent.EditBoatLength:
                    view.ShowInputInfo(View.MenuEvent.EditBoatLength, member);
                    try
                    {
                        boat.Length = view.InputBoatLenght();
                        registry.Save();
                        break;
                    }
                    catch (ArgumentException)
                    {
                        view.ShowErrorMessage(View.Error.InvalidBoatLenght, null);
                        view.Wait();
                        break;
                    }

                case View.MenuEvent.Back:
                    return;
                }
            }
        }