public Motherboard(string manufacturer, GPU graphics, CPU processor, RAM temporaryMemory, HardDrive storage) { this.manufacturer = manufacturer; this.graphics = graphics; this.processor = processor; this.temporaryMemory = temporaryMemory; this.storage = storage; }
public bool CheckRequirements(Applications app, HardDrive hardDrive, RAM ram) { if (hardDrive.availableStorage > app.requiredStorage && ram.totalGigabytes > app.requiredRam) { return(true); } else { return(false); } }
public void ProcessInstall(Applications app, HardDrive hardDrive, RAM ram) { bool checkRequirements = CheckRequirements(app, hardDrive, ram); if (checkRequirements == true) { hardDrive.applicationsOnHardDrive.Add(app); } else { Console.WriteLine("Cannot install application."); } }