예제 #1
0
        public Library()
        {
            Members = new MemberCollection();
            Movies  = new MovieCollection();
            Staff   = new Staff("staff", "today123");

            MainMenu   = new MainMenu(Members, Staff);
            StaffMenu  = new StaffMenu(Members, Movies);
            MemberMenu = new MemberMenu(Movies);

            // Connect all pages
            MainMenu.StaffMenu  = StaffMenu;
            MainMenu.MemberMenu = MemberMenu;
            StaffMenu.MainMenu  = MainMenu;
            MemberMenu.MainMenu = MainMenu;
        }
예제 #2
0
 public StaffMenu(MemberCollection members, MovieCollection movies)
 {
     Members = members;
     Movies  = movies;
 }
예제 #3
0
 public MemberMenu(MovieCollection movies)
 {
     Movies = movies;
 }