public AddBoatController()
 {
     this.addBoatView = new AddBoatView();
     addBoatView.showAddBoatMenu();
     addBoatView.showMemberList();
     member = addBoatView.getSelectedMember();
     if (member != null)
     {
         saveBoat();
     }
     else {
         StartController startController = new StartController();
     }
 }
コード例 #2
0
 public AddBoatController()
 {
     this.boatView = new AddBoatView();
     boatView.showAddBoatMenu();
     boatView.showMemberList();
     choice = boatView.getChoice();
     if (boatView.doesMemberExist())
     {
         saveBoat();
     }
     else {
         StartController startController = new StartController();
     }
 }