Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public struct ComputerData
- {
- public string Brand { get; set; }
- public string AlBrand { get; set; }
- public string Type { get; set; }
- public string Architect { get; set; }
- public string Processor { get; set; }
- public string Ram { get; set; }
- public string HardDrive { get; set; }
- public string HardDriveSize { get; set; }
- public string VideoChip { get; set; }
- public string VideoMemory { get; set; }
- public int Amount { get; set; }
- public bool WiFi { get; set; }
- public bool Bluetooth { get; set; }
- public bool Keyboard { get; set; }
- public bool DVD { get; set; }
- public bool ProductType { get; set; }
- public bool Category { get; set; }
- }
- public List<ComputerData> computer_data = new List<ComputerData>();
- public List<string> brand = new List<string>();
- public List<string> albrand = new List<string>();
- public List<string> type = new List<string>();
- public List<string> architect = new List<string>();
- public List<string> processor = new List<string>();
- public List<string> ram = new List<string>();
- public List<string> harddrive = new List<string>();
- public List<string> harddrivesize = new List<string>();
- public List<string> videochip = new List<string>();
- public List<string> videomemory = new List<string>();
- internal void AddBrand()
- {
- brand.Add("Dell");
- brand.Add("Lenovo");
- brand.Add("Asus");
- brand.Add("HP");
- }
- internal void AddAlBrand(int index)
- {
- switch (index)
- {
- case 0:
- albrand.Add("Inspiron");
- albrand.Add("Alienware");
- break;
- case 1:
- albrand.Add("Ideapad");
- albrand.Add("Thinkpad");
- break;
- case 2:
- albrand.Add("Zenbook");
- albrand.Add("Vivobook");
- break;
- case 3:
- albrand.Add("Elitebook");
- albrand.Add("Pavilion");
- break;
- }
- }
- internal void AddType(int index)
- {
- switch (index)
- {
- case 0: type.Add("5593"); break;
- case 1: type.Add("M15"); break;
- case 2: type.Add("Y560"); break;
- case 3: type.Add("T440"); break;
- case 4: type.Add("UM431DA-AM006T"); break;
- case 5: type.Add("X512FL-BQ250"); break;
- case 6: type.Add("2570P"); break;
- case 7: type.Add("13-an1000nh"); break;
- }
- }
- internal void AddArchitect()
- {
- architect.Add("Intel");
- architect.Add("AMD");
- }
- internal void AddProcessor(int index)
- {
- switch (index)
- {
- case 0:
- processor.Add("i5-3210M");
- processor.Add("i9-9980HK");
- break;
- case 1:
- processor.Add("Ryzen 7 3700x");
- processor.Add("Ryzen 9 3900x");
- break;
- }
- }
- internal void AddRAM()
- {
- ram.Add("8");
- ram.Add("16");
- ram.Add("32");
- ram.Add("64");
- }
- internal void AddHardDrive()
- {
- harddrive.Add("Winchester");
- harddrive.Add("SSD");
- }
- internal void AddHardDriveSize()
- {
- harddrivesize.Add("128GB");
- harddrivesize.Add("512GB");
- harddrivesize.Add("1TB");
- harddrivesize.Add("2TB");
- }
- internal void AddVideoChip()
- {
- videochip.Add("Nvidia");
- videochip.Add("Ati");
- }
- internal void AddVideoMemory()
- {
- videomemory.Add("2GB");
- videomemory.Add("4GB");
- videomemory.Add("8GB");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement