Exemple #1
0
 private void radioButtonMaster_CheckedChanged(object sender, EventArgs e)
 {
     selectedFlooring = allFloorings.Where(x => x.Name.Equals("Master")).FirstOrDefault();
 }
Exemple #2
0
        public Form1()
        {
            InitializeComponent();


            Flooring bruce = new Flooring();

            bruce.Name = "Bruce";
            bruce.PricePerSquareFoot = 2.49;
            bruce.Description        = "Oak Gunstock Hardwood";
            bruce.ItemNumber         = "1051367";
            allFloorings.Add(bruce);

            Flooring smartCore = new Flooring();

            smartCore.Name = "Smartcore";
            smartCore.PricePerSquareFoot = 3.79;
            smartCore.Description        = "Maple Bluegrass Hardwood";
            smartCore.ItemNumber         = "1051339";
            allFloorings.Add(smartCore);

            Flooring flexco = new Flooring();

            flexco.Name = "Flexco";
            flexco.PricePerSquareFoot = 4.39;
            flexco.Description        = "Walnut Light Hardwood";
            flexco.ItemNumber         = "1077786";
            allFloorings.Add(flexco);

            Flooring traffic = new Flooring();

            traffic.Name = "Traffic";
            traffic.PricePerSquareFoot = 4.39;
            traffic.Description        = "Walnut Coffee Carpet";
            traffic.ItemNumber         = "2361367";
            allFloorings.Add(traffic);

            Flooring versatile = new Flooring();

            versatile.Name = "Versatile";
            versatile.PricePerSquareFoot = 0.97;
            versatile.Description        = "Field Day Rolling Carpet";
            versatile.ItemNumber         = "2361367";
            allFloorings.Add(versatile);

            Flooring foss = new Flooring();

            foss.Name = "Foss";
            foss.PricePerSquareFoot = 2.75;
            foss.Description        = "Peel & Stick Carpet";
            foss.ItemNumber         = "2361367";
            allFloorings.Add(foss);

            Flooring pergo = new Flooring();

            pergo.Name = "Pergo";
            pergo.PricePerSquareFoot = 2.79;
            pergo.Description        = "Oak Glazed Laminate";
            pergo.ItemNumber         = "4055667";
            allFloorings.Add(pergo);

            Flooring master = new Flooring();

            master.Name = "Master";
            master.PricePerSquareFoot = 1.49;
            master.Description        = "Paradise Jatoba Laminate";
            master.ItemNumber         = "4365886";
            allFloorings.Add(master);

            FloorInstaller floorInstallation = new FloorInstaller();

            floorInstallation.Name        = "Floor Installer";
            floorInstallation.Fee         = 200;
            floorInstallation.Description = "";
            addOns.Add("Floor Installer", floorInstallation);

            AddOns manualInstallation = new AddOns();

            manualInstallation.Name        = "Installation Manual";
            manualInstallation.Fee         = 49.99;
            manualInstallation.Description = "";
            addOns.Add("Installation Manual", manualInstallation);

            AddOns truckDelivery = new AddOns();

            truckDelivery.Name        = "Truck Delivery";
            truckDelivery.Fee         = 399.99;
            truckDelivery.Description = "Flat Delivery Fee";
            addOns.Add("Truck Delivery", truckDelivery);
        }