Exemple #1
0
 public IEnumerable <Computer> ViewGameByTypeVideocard(TypeVideocard selectTM)
 {
     foreach (Computer curcomp in _objs)
     {
         if (curcomp is Game game)
         {
             if (game.Videocard == selectTM)
             {
                 yield return(curcomp);
             }
         }
     }
 }
Exemple #2
0
 public Game(string Maker, TypeProcessor Processor, int ram, TypeDrive Drive, TypeVideocard Videocard, double Power) : base(Maker, Processor, ram, Drive)
 {
     this.Videocard = Videocard;
     this.Power     = Power;
     Console.WriteLine($"Maker:{Maker}/ Processor: {Processor}/ Ram: {ram}gb/ Drive: {Drive}/Videocard: {Videocard}/ Power: {Power} tflops");
 }