Esempio n. 1
0
        static void Main(string[] args)
        {
            var appView = new AppView();
            var memberView = new MemberView();
            var boatView = new BoatView();
            var memberController = new MemberController(memberView);
            var boatController = new BoatController(boatView);
            var appController = new AppController(appView, boatController, memberController);

            appController.Start();
        }
 public void editMember()
 {
     if (this.menuChoice == 'R')
     {
         this.memberView.editMember();
     }
     if (this.menuChoice == 'T')
     {
         this.memberDAL.deleteMember(this.selectedMember);
     }
     if (this.menuChoice == 'H')
     {
         BoatController boatController = new BoatController(this.selectedMember, this.memberView);
     }
     if (this.menuChoice == 'S')
     {
         StartMenuController startController = new StartMenuController();
     }
 }
Esempio n. 3
0
 public AppController(AppView appView, BoatController boatController, MemberController memberController)
 {
     _view = appView;
     _boatController = boatController;
     _memberController = memberController;
 }