Beispiel #1
0
        private void FillHardware()
        {
            List <string>       view = new List <string>();
            ComputerInformation ci   = new ComputerInformation();

            ci.ScanFromCpuZ();
            currentComputer.AddHardware(ci.GetCpu());
            currentComputer.AddHardware(ci.GetMotherboard());
            foreach (Hardware h in ci.GetGpus())
            {
                currentComputer.AddHardware(h);
            }
            foreach (Hardware h in ci.GetRams())
            {
                currentComputer.AddHardware(h);
            }
            foreach (Hardware h in ci.GetHdds())
            {
                currentComputer.AddHardware(h);
            }
            //currentComputer.AddHardware(new Hardware()
            //{
            //    Model = currentComputer.Hardwares[2].Model,
            //    Memory = currentComputer.Hardwares[2].Memory,
            //    Type = currentComputer.Hardwares[2].Type
            //});
        }