Beispiel #1
0
        private iMemberCollection initaliseMemberCollection()
        {
            iMemberCollection BorrowerMembers = new MemberCollection();

            foreach (var aMember in Borrowers)
            {
                BorrowerMembers.add(aMember);
            }

            return(BorrowerMembers);
        }
Beispiel #2
0
        public static void Main(string[] args)
        {
            MemberCollection registerMembers = new MemberCollection();
            Member           currentUser     = null;


            Category gardeningTools =
                new Category("Gardening tools",
                             new Tooltype[] {
                new Tooltype("Line Trimmers"),
                new Tooltype("Lawn Mowers"),
                new Tooltype("Hand Tools"),
                new Tooltype("Wheelbarrows"),
                new Tooltype("Garden Power Tools")
            });

            Category flooringTools =
                new Category("Flooring tools",
                             new Tooltype[] {
                new Tooltype("Scrapers"),
                new Tooltype("Floor Lasers"),
                new Tooltype("Floor Levelling Tools"),
                new Tooltype("Floor Levelling Materials"),
                new Tooltype("Floor Hand Tools"),
                new Tooltype("Tiling Tools")
            });

            Category fencingTools =
                new Category("Fencing tools",
                             new Tooltype[] {
                new Tooltype("Hand Tools"),
                new Tooltype("Electric Fencing"),
                new Tooltype("Steel Fencing Tools"),
                new Tooltype("Power Tools"),
                new Tooltype("Fencing Accessories")
            });

            Category measuringTools =
                new Category("Measuring tools",
                             new Tooltype[] {
                new Tooltype("Distance Tools"),
                new Tooltype("Lawn Mowers"),
                new Tooltype("Measuring Jugs"),
                new Tooltype("Temperature & Humidity Tools"),
                new Tooltype("Levelling Tools")
            });

            Category cleaningTools =
                new Category("Cleaning tools",
                             new Tooltype[] {
                new Tooltype("Draining"),
                new Tooltype("Car Cleaning"),
                new Tooltype("Vacuum"),
                new Tooltype("Pressure Cleaners"),
                new Tooltype("Pool Cleaning"),
                new Tooltype("Floor Cleaning")
            });

            Category paintingTools =
                new Category("Painting tools",
                             new Tooltype[] {
                new Tooltype("Sanding Tools"),
                new Tooltype("Brushes"),
                new Tooltype("Rollers"),
                new Tooltype("Paint Removal Tools"),
                new Tooltype("Paint Scrapers"),
                new Tooltype("Sprayers")
            });

            Category electronicTools =
                new Category("Electronic tools",
                             new Tooltype[] {
                new Tooltype("Voltage Tester"),
                new Tooltype("Oscilloscopes"),
                new Tooltype("Thermal Imaging"),
                new Tooltype("Data Test Tool"),
                new Tooltype("Insulation Testers")
            });

            Category electricityTools =
                new Category("Electricity tools",
                             new Tooltype[] {
                new Tooltype("Test Equipment"),
                new Tooltype("Safety Equipment"),
                new Tooltype("Basic Hand tools"),
                new Tooltype("Circuit Protection"),
                new Tooltype("Cable Tools")
            });

            Category automotiveTools =
                new Category("Automotive tools",
                             new Tooltype[] {
                new Tooltype("Jacks"),
                new Tooltype("Air Compressors"),
                new Tooltype("Battery Chargers"),
                new Tooltype("Socket Tools"),
                new Tooltype("Braking"),
                new Tooltype("Drivetrain")
            });

            Category[] categories = new Category[] {
                gardeningTools,
                flooringTools,
                fencingTools,
                measuringTools,
                cleaningTools,
                paintingTools,
                electronicTools,
                electricityTools,
                automotiveTools
            };

            ToolLibrarySystem toolLibrarySystem = new ToolLibrarySystem(categories, registerMembers, currentUser);

            MainMenu(toolLibrarySystem);
        }
 public ToolLibrarySystem(Category[] categories, MemberCollection registerMembers, Member currentUser)
 {
     this.categories      = categories;
     this.registerMembers = registerMembers;
     this.currentUser     = currentUser;
 }