예제 #1
0
 internal Cpu(byte numberOfCores, byte numberOfBits, Ram ram, VideoCard videoCard)
 {
     this.numberOfBits = numberOfBits;
     this.ram = ram;
     this.NumberOfCores = numberOfCores;
     this.videoCard = videoCard;
 }
 internal Computer(ComputerType type, Cpu cpu, Ram ram, IEnumerable<HardDrive> hardDrives, VideoCard videoCard, LaptopBatteryReal battery)
 {
     this.Cpu = cpu;
     this.Ram = ram;
     this.HardDrives = hardDrives;
     this.VideoCard = videoCard;
     if (type !=
         ComputerType.LAPTOP
         && type
         !=
         ComputerType.PC)
     {
         this.VideoCard.IsMonochrome = true;
     }
     this.battery = battery;
 }