public bool CheckGameRequirements(Games game, HardDrive hardDrive, RAM ram, GPU graphics) { bool canRun = false; if (ram.totalGigabytes >= game.RequiredRAM && hardDrive.availableStorage >= game.RequiredStorage && game.requiredEffectiveMemory >= graphics.effectiveMemory) { hardDrive.ApplicationsInHardDrive.Add(game); canRun = true; } else { Console.WriteLine($"Your computer does not meet the minimum requirements for installing {game.ApplicationName}!"); } return(canRun); }
public bool CheckRequirements(Applications app, HardDrive hardDrive, RAM ram, GPU graphics) { bool canRun = false; if (ram.totalGigabytes >= app.RequiredRAM && hardDrive.availableStorage >= app.RequiredStorage) { hardDrive.ApplicationsInHardDrive.Add(app); canRun = true; } else { Console.WriteLine($"Your computer does not meet the minimum requirements for installing {app.ApplicationName}!"); } return(canRun); }