Example #1
0
        private static void InitializeInventory(Inventory inventory)
        {
            Dictionary <string, string> properties = new Dictionary <string, string>();

            properties["instrumentType"] = InstrumentType.Guitar.ToString();
            properties["builder"]        = Builder.COLLINGS.ToString();
            properties["model"]          = "CJ";
            properties["type"]           = Type.ACOUSTIC.ToString();
            properties["numStrings"]     = "6";
            properties["topWood"]        = Wood.INDIAN_ROSEWOOD.ToString();
            properties["backWood"]       = Wood.SITKA.ToString();
            inventory.AddInstrument("11277", 3999.95, new InstrumentSpec(properties));

            properties["builder"]  = Builder.MARTIN.ToString();
            properties["model"]    = "D-18";
            properties["topWood"]  = Wood.MAHOGANY.ToString();
            properties["backWood"] = Wood.ALDER.ToString();
            inventory.AddInstrument("122784", 5495.95, new InstrumentSpec(properties));

            properties["builder"]  = Builder.FENDER.ToString();
            properties["model"]    = "Stratocastor";
            properties["type"]     = Type.ELECTRIC.ToString();
            properties["topWood"]  = Wood.ALDER.ToString();
            properties["backWood"] = Wood.ALDER.ToString();
            inventory.AddInstrument("V95693", 1499.95, new InstrumentSpec(properties));
            inventory.AddInstrument("V9512", 1549.95, new InstrumentSpec(properties));

            properties["builder"]  = Builder.GIBSON.ToString();
            properties["model"]    = "Les Paul";
            properties["topWood"]  = Wood.MAPLE.ToString();
            properties["backWood"] = Wood.MAPLE.ToString();
            inventory.AddInstrument("70108276", 2295.95, new InstrumentSpec(properties));

            properties["model"]    = "SG '61 Reissue";
            properties["topWood"]  = Wood.MAHOGANY.ToString();
            properties["backWood"] = Wood.MAHOGANY.ToString();
            inventory.AddInstrument("82765501", 1890.95, new InstrumentSpec(properties));

            properties["instrumentType"] = InstrumentType.Mandolin.ToString();
            properties["type"]           = Type.ACOUSTIC.ToString();
            properties["model"]          = "F-5G";
            properties["backWood"]       = Wood.MAPLE.ToString();
            properties["topWood"]        = Wood.MAPLE.ToString();
            properties.Remove("numStrings");
            inventory.AddInstrument("9019920", 5495.99, new InstrumentSpec(properties));

            properties["instrumentType"] = InstrumentType.Banjo.ToString();
            properties["model"]          = "RB-3 Wreath";
            properties.Remove("topWood");
            properties["numStrings"] = "5";
            inventory.AddInstrument("8900231", 2945.95, new InstrumentSpec(properties));
        }
Example #2
0
        private static void InitializeInventory(Inventory inventory)
        {
            Dictionary<string, string> properties = new Dictionary<string, string>();
            properties["instrumentType"] = InstrumentType.Guitar.ToString();
            properties["builder"] = Builder.COLLINGS.ToString();
            properties["model"] = "CJ";
            properties["type"] = Type.ACOUSTIC.ToString();
            properties["numStrings"] = "6";
            properties["topWood"] = Wood.INDIAN_ROSEWOOD.ToString();
            properties["backWood"] = Wood.SITKA.ToString();
            inventory.AddInstrument("11277", 3999.95, new InstrumentSpec(properties));

            properties["builder"] = Builder.MARTIN.ToString();
            properties["model"] = "D-18";
            properties["topWood"] = Wood.MAHOGANY.ToString();
            properties["backWood"] = Wood.ALDER.ToString();
            inventory.AddInstrument("122784", 5495.95, new InstrumentSpec(properties));

            properties["builder"] = Builder.FENDER.ToString();
            properties["model"] = "Stratocastor";
            properties["type"] = Type.ELECTRIC.ToString();
            properties["topWood"] = Wood.ALDER.ToString();
            properties["backWood"] = Wood.ALDER.ToString();
            inventory.AddInstrument("V95693", 1499.95, new InstrumentSpec(properties));
            inventory.AddInstrument("V9512", 1549.95, new InstrumentSpec(properties));

            properties["builder"] = Builder.GIBSON.ToString();
            properties["model"] = "Les Paul";
            properties["topWood"] = Wood.MAPLE.ToString();
            properties["backWood"] = Wood.MAPLE.ToString();
            inventory.AddInstrument("70108276", 2295.95, new InstrumentSpec(properties));

            properties["model"] = "SG '61 Reissue";
            properties["topWood"] = Wood.MAHOGANY.ToString();
            properties["backWood"] = Wood.MAHOGANY.ToString();
            inventory.AddInstrument("82765501", 1890.95, new InstrumentSpec(properties));

            properties["instrumentType"] = InstrumentType.Mandolin.ToString();
            properties["type"] = Type.ACOUSTIC.ToString();
            properties["model"] = "F-5G";
            properties["backWood"] = Wood.MAPLE.ToString();
            properties["topWood"] = Wood.MAPLE.ToString();
            properties.Remove("numStrings");
            inventory.AddInstrument("9019920", 5495.99, new InstrumentSpec(properties));

            properties["instrumentType"] = InstrumentType.Banjo.ToString();
            properties["model"] = "RB-3 Wreath";
            properties.Remove("topWood");
            properties["numStrings"] = "5";
            inventory.AddInstrument("8900231", 2945.95, new InstrumentSpec(properties));
        }
Example #3
0
        private static void InitializeInventory(Inventory inventory)
        {
            List <InstrumentSpec> specs = new List <InstrumentSpec>();

            Hashtable h1 = new Hashtable();

            h1.Add("instrumentType", InstrumentType.GUITAR);
            h1.Add("builder", Builder.COLLINGS);
            h1.Add("model", "CJ");
            h1.Add("type", Type.ACOUSTIC);
            h1.Add("numStrings", 6);
            h1.Add("topWood", Wood.INDIAN_ROSEWOOD);
            h1.Add("backWood", Wood.SITKA);
            inventory.AddInstrument("11277", 3999.95, new InstrumentSpec(h1));

            Hashtable h2 = new Hashtable();

            h2.Add("instrumentType", InstrumentType.GUITAR);
            h2.Add("builder", Builder.MARTIN);
            h2.Add("model", "D-18");
            h2.Add("type", Type.ACOUSTIC);
            h2.Add("numStrings", 6);
            h2.Add("topWood", Wood.ADIRONDACK);
            h2.Add("backWood", Wood.MAHOGANY);
            inventory.AddInstrument("122784", 5495.95, new InstrumentSpec(h2));

            Hashtable h3 = new Hashtable();

            h3.Add("instrumentType", InstrumentType.GUITAR);
            h3.Add("builder", Builder.FENDER);
            h3.Add("model", "Stratocastor");
            h3.Add("type", Type.ELECTRIC);
            h3.Add("numStrings", 6);
            h3.Add("topWood", Wood.ALDER);
            h3.Add("backWood", Wood.ALDER);
            inventory.AddInstrument("V95693", 1499.95, new InstrumentSpec(h3));

            Hashtable h4 = new Hashtable();

            h4.Add("instrumentType", InstrumentType.GUITAR);
            h4.Add("builder", Builder.FENDER);
            h4.Add("model", "Stratocastor");
            h4.Add("type", Type.ELECTRIC);
            h4.Add("numStrings", 6);
            h4.Add("topWood", Wood.ALDER);
            h4.Add("backWood", Wood.ALDER);
            inventory.AddInstrument("V91512", 1549.95, new InstrumentSpec(h4));

            Hashtable h5 = new Hashtable();

            h5.Add("instrumentType", InstrumentType.GUITAR);
            h5.Add("builder", Builder.GIBSON);
            h5.Add("model", "SG'61 Reissue");
            h5.Add("type", Type.ELECTRIC);
            h5.Add("numStrings", 6);
            h5.Add("topWood", Wood.MAHOGANY);
            h5.Add("backWood", Wood.MAHOGANY);
            inventory.AddInstrument("82765501", 1890.95, new InstrumentSpec(h5));

            Hashtable h6 = new Hashtable();

            h6.Add("instrumentType", InstrumentType.GUITAR);
            h6.Add("builder", Builder.GIBSON);
            h6.Add("model", "Les Paul");
            h6.Add("type", Type.ELECTRIC);
            h6.Add("numStrings", 6);
            h6.Add("topWood", Wood.MAPLE);
            h6.Add("backWood", Wood.MAPLE);
            inventory.AddInstrument("70108276", 2295.95, new InstrumentSpec(h6));

            Hashtable h7 = new Hashtable();

            h7.Add("instrumentType", InstrumentType.MANDOLIN);
            h7.Add("builder", Builder.GIBSON);
            h7.Add("model", "F5-G");
            h7.Add("type", Type.ACOUSTIC);
            h7.Add("topWood", Wood.MAPLE);
            h7.Add("backWood", Wood.MAPLE);
            inventory.AddInstrument("9019920", 5495.99, new InstrumentSpec(h7));

            Hashtable h8 = new Hashtable();

            h8.Add("instrumentType", InstrumentType.BANJO);
            h8.Add("builder", Builder.GIBSON);
            h8.Add("model", "RB-3");
            h8.Add("type", Type.ACOUSTIC);
            h8.Add("topWood", Wood.MAPLE);
            h8.Add("backWood", Wood.MAPLE);
            inventory.AddInstrument("8900231", 2945.95, new InstrumentSpec(h8));
        }