public GraphicsCard makeGraphicsCard() { string description = "Radeon 376"; double price = 946.92; GraphicsCard graphicsCard = new GraphicsCard(description, price); return(graphicsCard); }
public GraphicsCard makeGraphicsCard() { string description = "GeForce 338"; double price = 150.92; GraphicsCard graphicsCard = new GraphicsCard(description, price); return(graphicsCard); }
public void printSpec() { CPU currentCPU = machineMaker.makeCPU(); Memory currentMemory = machineMaker.makeMemory(); GraphicsCard currentGraphicsCard = machineMaker.makeGraphicsCard(); Monitor currentMonitor = machineMaker.makeMonitor(); double totalPrice = currentCPU.Price + currentMemory.Price + currentGraphicsCard.Price; listbox.Items.Clear(); listbox.Items.Add("Price\tComponent"); listbox.Items.Add("-----------------------------"); listbox.Items.Add(currentCPU.Price + "\t" + currentCPU.ToString()); listbox.Items.Add(currentMemory.Price + "\t" + currentMemory.ToString()); listbox.Items.Add(currentGraphicsCard.Price + "\t" + currentGraphicsCard.ToString()); listbox.Items.Add(currentMonitor.Price + "\t" + currentMonitor.ToString()); listbox.Items.Add("-----------------------------"); listbox.Items.Add("Total Price: " + totalPrice.ToString()); }