示例#1
0
 public static void CreateInventory(Cpu cpu, CpuCooler cooler, Gpu gpu, Memory memory, MotherBoard motherboard, Case computerCase, Psu psu)
 {
     inventory.AddCpu(cpu);
     inventory.AddCooler(cooler);
     inventory.AddGpu(gpu);
     inventory.AddMemory(memory);
     inventory.AddMotherboard(motherboard);
     inventory.AddCase(computerCase);
     inventory.AddPsu(psu);
 }
示例#2
0
 public void AddCase(Case computerCase)
 {
     ComputerCases.Add(computerCase);
 }