Exemple #1
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);
     }
 }
Exemple #2
0
 //constructor
 public Motherboard(string manufacturer, RAM ram, CPU cpu, HardDrive hardDrive, GPU gpu)
 {
     Manufacturer    = manufacturer;
     TemporaryMemory = ram;
     Processor       = cpu;
     Storage         = hardDrive;
     Graphics        = gpu;
 }
Exemple #3
0
 //constructor
 public Computer()
 {
     Processor       = new CPU("ryzen", "my cpu");
     Storage         = new HardDrive(1000, 700);
     TemporaryMemory = new RAM(32, "Corsair");
     games           = new Games();
     Graphics        = new GPU("MSI", 16);
     motherboard     = new Motherboard("MSI", TemporaryMemory, Processor, Storage, Graphics, Application);
 }
Exemple #4
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);
     }
 }