Example #1
0
        public static void Main(string[] args)
        {
            //Box box = new Box(10, 5, 20, "green");
            //Console.WriteLine(box.GetCompoments.Count);

            //DoubleDoors db = new DoubleDoors("green", "Glass");
            //BoxColor bc = new BoxColor("green");

            //db.AddBoxDecorator(box);
            //bc.AddBoxDecorator(db);

            //cabinet.AddStorageBox(box);
            //cabinet.AddStorageBox(db);
            //cabinet.AddStorageBox(bc);

            Profile client = new Profile("Smits", "Victor");

            Cabinet cabinet = new Cabinet();
            Cart    cart    = new Cart();

            CabinetFloor cabinetFloor = new CabinetFloor
                                            (height: 10,
                                            lenght: 5,
                                            depth: 20,
                                            doorCol: "green",
                                            doorMat: "Wood",
                                            panelCol: "green");

            cabinet.AddStorageBox(new CabinetFloor(10, 5, 20, "green", "Wood", "green"));
            cabinet.AddStorageBox(new CabinetFloor(10, 5, 20, panelCol: "green"));

            Console.WriteLine("Hieght = " + cabinet.GetCabinetHeight);
            Console.WriteLine("Price = " + cabinet.GetCabinetPrice);
            Console.WriteLine("\n" + cabinet.GetPartList());

            Oledb.connection("/Users/victorsmits/Dropbox/ECAM/BAC3/Projet informatique/Projet_GL/Database/DB_Lespieces.accdb");

            cart.AddToCart(cabinet);
            cart.AddCartProfile(client);
            cart.GetProfile();
            Console.ReadKey();
        }
Example #2
0
 // Adding a floor and seting up the new height and price
 public void AddStorageBox(CabinetFloor storage)
 {
     cabinetFloors.Add(storage);
     cabinetPrice  += storage.GetFloorPrice;
     cabinetHeight += storage.GetFloorHeight;
 }