public Computer(ComputerTypes type, Processor processor, string videocard, RamTypes ramType, int driveSize, DriveTypes driveType, string purchaseTime) { this.type = type; this.processor = processor; this.videocard = videocard; this.ramType = ramType; this.driveSize = driveSize; this.driveType = driveType; this.purchaseTime = purchaseTime; }
//constructors internal Computer(ComputerTypes type, ComputerCpu cpu, ComputerRam ram, IEnumerable<HardDrive> hardDrives, HardDrive videoCard, LaptopBattery battery) { this.Cpu = cpu; this.Ram = ram; this.HardDrives = hardDrives; this.VideoCard = videoCard; if (type != ComputerTypes.Laptop && type != ComputerTypes.Pc) { this.VideoCard.IsMonochrome = true; } this.battery = battery; }
//constructors internal Computer(ComputerTypes type, ComputerCpu cpu, ComputerRam ram, IEnumerable <HardDrive> hardDrives, HardDrive videoCard, LaptopBattery battery) { this.Cpu = cpu; this.Ram = ram; this.HardDrives = hardDrives; this.VideoCard = videoCard; if (type != ComputerTypes.Laptop && type != ComputerTypes.Pc) { this.VideoCard.IsMonochrome = true; } this.battery = battery; }
public override void SetAttributes(ComputerTypes computerTypes, RamTypes ramTypes, DriveTypes driveTypes) { this.CType = ComputerTypes.PC; this.DType = driveTypes; this.RType = ramTypes; }
public override void SetAttributes(ComputerTypes computerTypes, RamTypes ramTypes, DriveTypes driveTypes) { this.CType = ComputerTypes.Server; this.RType = RamTypes.ddr5; this.DType = DriveTypes.shdd; }
public Form2(processorHandler AddProcessorInComputer, ChangeStatusHandler ChnageStatus, ComputerTypes computerType) { InitializeComponent(); this.AddProcessor += AddProcessorInComputer; this.ChangeStatus += ChnageStatus; this.processor = new Processor(); this.computerType = computerType; SetBuilder(); this.comboBox1.Items.Add(Bits.processorBit.x32); this.comboBox1.Items.Add(Bits.processorBit.x64); this.comboBox1.SelectedIndex = 1; }
public abstract void SetAttributes(ComputerTypes computerTypes, RamTypes ramTypes, DriveTypes driveTypes);