Exemple #1
0
 public bool CheckingRequirements(Applications applications, HardDrive hardDrive, RAM ram, Games game, GPU gpu)
 {
     if (ram.TotalGigabytes > applications.RequiredRam &&
         applications.RequiredStorage < hardDrive.AvailableStorage && game.RequiredEffectiveMemory < gpu.EffectiveMemory)
     {
         return(true);
     }
     else
     {
         Console.WriteLine("Sorry, you do not have enough RAM or available memory for storage.");
         return(false);
     }
 }
Exemple #2
0
 //member methods
 public void ProcessInstall(Applications applications, HardDrive hardDrive, RAM ram, Games game, GPU gpu)
 {
     if (CheckingRequirements(applications, hardDrive, ram, game, gpu) == true)
     {
         hardDrive.ApplicationsInHardDrive.Add(applications);
     }
 }