Exemplo n.º 1
0
        public void Open()
        {
            if (open)
            {
                return;
            }

            this.smbios = new SMBIOS();

            Ring0.Open();
            Opcode.Open();

            if (mainboardEnabled)
            {
                Add(new Mainboard.MainboardGroup(smbios, settings));
            }

            if (cpuEnabled)
            {
                Add(new CPU.CPUGroup(settings));
            }

            if (ramEnabled)
            {
                Add(new RAM.RAMGroup(smbios, settings));
            }

            if (gpuEnabled)
            {
                Add(new ATI.ATIGroup(settings));
                Add(new Nvidia.NvidiaGroup(settings));
            }

            if (fanControllerEnabled)
            {
                Add(new TBalancer.TBalancerGroup(settings));
                Add(new Heatmaster.HeatmasterGroup(settings));
            }

            if (hddEnabled)
            {
                Add(new HDD.HarddriveGroup(settings));
            }

            open = true;
        }
Exemplo n.º 2
0
        public void Close()
        {
            if (!open)
            {
                return;
            }

            while (groups.Count > 0)
            {
                IGroup group = groups[groups.Count - 1];
                Remove(group);
            }

            Opcode.Close();
            Ring0.Close();

            this.smbios = null;

            open = false;
        }