public bool CheckRequirements(Applications app, HardDrive hardDrive, RAM ram, GPU gpu) { bool rtn = false; if (ram.totalGigabytes >= app.requiredRAM && hardDrive.availableStorage >= app.requiredStorage && gpu.effectiveMemory >= app.GraphicsRequirement()) { rtn = true; } return(rtn); }
//member methods public void ProcessInstall(Applications app, HardDrive hardDrive, RAM ram, GPU gpu) { hardDrive.ApplicationsInHardDrive.Add(app); }