Beispiel #1
0
        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);
        }
Beispiel #2
0
 //member methods
 public void ProcessInstall(Applications app, HardDrive hardDrive, RAM ram, GPU gpu)
 {
     hardDrive.ApplicationsInHardDrive.Add(app);
 }