示例#1
0
        public void Init()
        {
            // TODO: Complete member initialization
            Console.WriteLine("Getting CPU Information");
            compCPU = new CPU();

            Console.WriteLine("Getting Motherboard Information");
            compMobo = new Motherboard();

            Console.WriteLine("Getting RAM Information");
            compRAM = new RAM();

            Console.WriteLine("Getting Drive Information");
            compVols = new Volumes();

            Console.WriteLine("Getting Display Adapter Information");
            compDisplays = new DisplayDevices();

            Console.WriteLine("Getting NIC Information");
            compNICS = new NIC();

            Console.WriteLine("Getting Service Information");
            //Getting services information
            UpdateServices();

            Console.Write("Getting Scheduled Task Information");
            UpdateScheduledTasks(); //gotta program this

            Console.WriteLine("Init Complete");
        }
示例#2
0
 public void InitComputer()
 {
     computer.Init();
     compHardware = computer.GetHardware();
     compCPU = (CPU)compHardware[0];
     compMobo = (Motherboard)compHardware[1];
     compRAM = (RAM)compHardware[2];
     compVols = (Volumes)compHardware[3];
     compDisplay = (DisplayDevices)compHardware[4];
     compNIC = (NIC)compHardware[5];
 }