/// <summary> /// Constructor, creates new instances of necessary objects /// save them to fields /// </summary> /// <param name="mainMenu"></param> /// <param name="editUpdateMenu"></param> public MemberController(View.MainMenuView mainMenu, EditUpdateMenu editUpdateMenu) { _mainMenu = mainMenu; _editUpdateMenu = editUpdateMenu; _memberDAL = new MemberDAL(directorieStrs.MemberListPath); _members = new List<Member>(); _boatView = new BoatView(); _memberView = new MemberView(_boatView); }
/// <summary> /// constructor, sets field _boatView from arg. /// </summary> /// <param name="boatView"></param> public MemberView(BoatView boatView) { _boatView = boatView; }