Advertisement
Guest User

Untitled

a guest
Feb 20th, 2020
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.22 KB | None | 0 0
  1.  
  2. public struct ComputerData
  3. {
  4. public string Brand { get; set; }
  5. public string AlBrand { get; set; }
  6. public string Type { get; set; }
  7. public string Architect { get; set; }
  8. public string Processor { get; set; }
  9. public string Ram { get; set; }
  10. public string HardDrive { get; set; }
  11. public string HardDriveSize { get; set; }
  12. public string VideoChip { get; set; }
  13. public string VideoMemory { get; set; }
  14. public int Amount { get; set; }
  15.  
  16. public bool WiFi { get; set; }
  17. public bool Bluetooth { get; set; }
  18. public bool Keyboard { get; set; }
  19. public bool DVD { get; set; }
  20. public bool ProductType { get; set; }
  21. public bool Category { get; set; }
  22. }
  23.  
  24. public List<ComputerData> computer_data = new List<ComputerData>();
  25. public List<string> brand = new List<string>();
  26. public List<string> albrand = new List<string>();
  27. public List<string> type = new List<string>();
  28. public List<string> architect = new List<string>();
  29. public List<string> processor = new List<string>();
  30. public List<string> ram = new List<string>();
  31. public List<string> harddrive = new List<string>();
  32. public List<string> harddrivesize = new List<string>();
  33. public List<string> videochip = new List<string>();
  34. public List<string> videomemory = new List<string>();
  35.  
  36. internal void AddBrand()
  37. {
  38. brand.Add("Dell");
  39. brand.Add("Lenovo");
  40. brand.Add("Asus");
  41. brand.Add("HP");
  42. }
  43.  
  44. internal void AddAlBrand(int index)
  45. {
  46. switch (index)
  47. {
  48. case 0:
  49. albrand.Add("Inspiron");
  50. albrand.Add("Alienware");
  51. break;
  52. case 1:
  53. albrand.Add("Ideapad");
  54. albrand.Add("Thinkpad");
  55. break;
  56. case 2:
  57. albrand.Add("Zenbook");
  58. albrand.Add("Vivobook");
  59. break;
  60. case 3:
  61. albrand.Add("Elitebook");
  62. albrand.Add("Pavilion");
  63. break;
  64. }
  65. }
  66.  
  67. internal void AddType(int index)
  68. {
  69. switch (index)
  70. {
  71. case 0: type.Add("5593"); break;
  72. case 1: type.Add("M15"); break;
  73. case 2: type.Add("Y560"); break;
  74. case 3: type.Add("T440"); break;
  75. case 4: type.Add("UM431DA-AM006T"); break;
  76. case 5: type.Add("X512FL-BQ250"); break;
  77. case 6: type.Add("2570P"); break;
  78. case 7: type.Add("13-an1000nh"); break;
  79. }
  80. }
  81.  
  82. internal void AddArchitect()
  83. {
  84. architect.Add("Intel");
  85. architect.Add("AMD");
  86. }
  87.  
  88. internal void AddProcessor(int index)
  89. {
  90. switch (index)
  91. {
  92. case 0:
  93. processor.Add("i5-3210M");
  94. processor.Add("i9-9980HK");
  95. break;
  96. case 1:
  97. processor.Add("Ryzen 7 3700x");
  98. processor.Add("Ryzen 9 3900x");
  99. break;
  100. }
  101. }
  102.  
  103. internal void AddRAM()
  104. {
  105. ram.Add("8");
  106. ram.Add("16");
  107. ram.Add("32");
  108. ram.Add("64");
  109. }
  110.  
  111. internal void AddHardDrive()
  112. {
  113. harddrive.Add("Winchester");
  114. harddrive.Add("SSD");
  115. }
  116.  
  117. internal void AddHardDriveSize()
  118. {
  119. harddrivesize.Add("128GB");
  120. harddrivesize.Add("512GB");
  121. harddrivesize.Add("1TB");
  122. harddrivesize.Add("2TB");
  123. }
  124.  
  125. internal void AddVideoChip()
  126. {
  127. videochip.Add("Nvidia");
  128. videochip.Add("Ati");
  129. }
  130.  
  131. internal void AddVideoMemory()
  132. {
  133. videomemory.Add("2GB");
  134. videomemory.Add("4GB");
  135. videomemory.Add("8GB");
  136. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement