static void Main(string[] args)
        {
            ProductType    x = new ProductType("Cameras");
            ResolutionInfo y = new ResolutionInfo(1, "Resolution of camera");

            ProductType    z = new ProductType("Photoprinter");
            ResolutionInfo m = new ResolutionInfo(1, "Resolution of photoprinter");
            ProductType    p = new ProductType("Wifi-Devices");

            List <ProductBase> ProductList = new List <ProductBase>()
            {
                new Camera("Canon PowerShot SX430 IS Camera", 16499, x, 323, 1, "Brand:Canon,Model Number:SX430 IS,Series: PowerShot,Brand Color:Black,Effective Pixels:20 MP", 500, "45x", y),
                new Camera("Sony CyberShot DSC-W800/BC IN5 Camera", 7790, x, 125, 2, "Brand:Sony,Model Number:DSC-W800/BC IN5,Series: CyberShot,Brand Color:Black,Effective Pixels:20.1 MP", 200, "13x", y),
                new Camera("Nikon Coolpix P950 Camera", 59999, x, 1500, 0, "Brand:Nikon,Model Number:P950,Series: Coolpix,Brand Color:Black,Effective Pixels:16 MP", 800, "83x", y),


                new  PhotoPrinter("Canon PIXMA E470 Multi-function WiFi Color Printer", 5525, z, 600, 1, "Printing Method:Inkjet,Type:Multi-function,Model Name:PIXMA E470,Printing Output:Color,Functions:Print, Copy, Scan,Brand:Canon,Refill Type:Ink Cartridge", "Color", 14, "Colour Cartridge:CL57,CL57S,Black cartridge:PG 47", m),
                new  PhotoPrinter("Epson L3100 Multi-function Color Printer", 11699, z, 3900, 5, "Printing Method:Inkjet,Type:Multi-function,Model Name:L3100,Printing Output:Color,Functions:Print, Copy, Scan,Brand:Epson,Refill Type:Ink Bottle", "Color", 16, "4,500 Pages Black Ink Bottle, 7,500 (Composite Yield) Cyan Ink Bottle, 7,500 (Composite Yield) Magenta Ink Bottle, 7,500 (Composite Yield) Yellow Ink Bottle", m),
                new  PhotoPrinter("HP DeskJet 2331 Multi-function Color Printer", 3299, z, 3240, 6, "Printing Method:Inkjet,Type:Multi-function,Model Name:DeskJet 2331,Printing Output:Color,Functions:Print, Copy, Scan,Brand:HP,Refill Type:Ink Cartridge", "Color", 10, "HP 805 Tri-color Original Ink Cartridge,HP 805 Small Black Cartridge", m),

                new Router("TP-Link TL-WR845N Wireless N 300 mbps Router", 1199, p, 400, 7, "Type:Wireless Without Modem,Model:TL-WR845N Wireless N,Part Number:1750502328,Controls:Buttons: Reset, Wi-Fi / WPS, Power On / Off,Color: White,Brand:TP-Link", "2.4Ghz", "IEEE 802.11n, IEEE 802.11g, IEEE 802.11b", 4, "Parental Control, Local Management Control, Host List, Access Schedule, Rule Management", "Black"),
                new Router("TENDA F3 Wireless Router 300 Mbps Router", 1099, p, 450, 3, "Type:Wireless Without Modem,Model:F3 Wireless Router,Color: White,Brand:TENDA", "2.4Ghz", "IEEE802.11/b/g/n", 3, "Parental Control, Local Management Control, Host List, Access Schedule, Rule Management", "Black"),
                new Router("D-Link DIR-819 750 Mbps Router", 1589, p, 500, 1, "Type:Wireless Without Modem,Model:DIR-819,Controls:WPS Button, Power Switch,Color: Black,Brand:D-Link", "2.4Ghz", "IEEE 802.11ac, IEEE 802.11n, IEEE 802.11g, IEEE 802.11b, IEEE 802.11a, IEEE 802.3u", 4, "Parental Control, Local Management Control, Host List, Access Schedule, Rule Management", "Black"),
            };


            List <ProductBase> MyCart = new List <ProductBase>();



            MainMenu(ProductList, MyCart);
        }
 public PhotoPrinter(string name, float price, ProductType type, float weight, int quantity, string description, string printFormat, int printingTime, string cartridge, ResolutionInfo resolution) : base(name, price, type, weight, quantity, description)
 {
     this.PrintFormat  = printFormat;
     this.PrintingTime = printingTime;
     this.Cartridge    = cartridge;
 }
Exemple #3
0
 public Camera(string name, float price, ProductType type, float weight, int quantity, string description, int sensitivity, string diaphragm, ResolutionInfo resolution) : base(name, price, type, weight, quantity, description)
 {
     this.Sensitivity = sensitivity;
     this.Diaphragm   = diaphragm;
 }