Exemple #1
0
        public bool CheckGraphicsRequirementsForGame(Applications app, HardDrive hardDrive, Games games, GPU gpu, RAM ram)
        {
            bool meetsSystemGraphicsRequirements = false;

            if (app == games)
            {
                if (gpu.effectiveMemory > games.requiredEffectiveMemory)
                {
                    meetsSystemGraphicsRequirements = true;
                }
                else
                {
                    Console.WriteLine("System does not meet the required effective memory");
                }
            }
            else
            {
            }
            return(meetsSystemGraphicsRequirements);
        }
Exemple #2
0
        public bool CheckRequirements(Applications app, HardDrive hardDrive, RAM ram, Games games, GPU gpu)
        {
            bool availableMemorySpace = false;

            if ((app.requiredRAM < ram.totalGigabytes) && (app.requiredStorage < hardDrive.availableStorage))
            {
                CheckGraphicsRequirementsForGame(app, hardDrive, games, gpu, ram);
                ProcessInstall(app, hardDrive, ram);
                availableMemorySpace = true;
            }
            else
            {
                Console.WriteLine("Memory is full");
            }
            return(availableMemorySpace);
        }