예제 #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.");
            }
        }