Пример #1
0
 public Motherboard(string manufacturer, GPU graphics, CPU processor, RAM temporaryMemory, HardDrive storage)
 {
     this.manufacturer    = manufacturer;
     this.graphics        = graphics;
     this.processor       = processor;
     this.temporaryMemory = temporaryMemory;
     this.storage         = storage;
 }
Пример #2
0
 public bool CheckRequirements(Applications app, HardDrive hardDrive, RAM ram)
 {
     if (hardDrive.availableStorage > app.requiredStorage && ram.totalGigabytes > app.requiredRam)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Пример #3
0
        public void ProcessInstall(Applications app, HardDrive hardDrive, RAM ram)
        {
            bool checkRequirements = CheckRequirements(app, hardDrive, ram);

            if (checkRequirements == true)
            {
                hardDrive.applicationsOnHardDrive.Add(app);
            }
            else
            {
                Console.WriteLine("Cannot install application.");
            }
        }