예제 #1
0
        public void Open()
        {
            if (_open)
            {
                return;
            }


            _smbios = new SMBios();

            Ring0.Open();
            OpCode.Open();

            if (_motherboardEnabled)
            {
                Add(new MotherboardGroup(_smbios, _settings));
            }

            if (_cpuEnabled)
            {
                Add(new CPU.CpuGroup(_settings));
            }

            if (_memoryEnabled)
            {
                Add(new MemoryGroup(_settings));
            }

            if (_gpuEnabled)
            {
                Add(new AmdGpuGroup(_settings));
                Add(new NvidiaGroup(_settings));
            }

            if (_controllerEnabled)
            {
                Add(new TBalancerGroup(_settings));
                Add(new HeatmasterGroup(_settings));
                Add(new AquaComputerGroup(_settings));
                Add(new AeroCoolGroup(_settings));
            }

            if (_storageEnabled)
            {
                Add(new StorageGroup(_settings));
            }

            if (_networkEnabled)
            {
                Add(new NetworkGroup(_settings));
            }

            _open = true;
        }
예제 #2
0
        public void Open()
        {
            if (_open)
            {
                return;
            }


            _smbios = new SMBios();

            Ring0.Open();
            OpCode.Open();

            AddGroups();

            _open = true;
        }
예제 #3
0
        public void Open()
        {
            if (_open)
            {
                return;
            }


            _smbios = new SMBios();

            Ring0.Open();
            OpCode.Open();

            if (_motherboardEnabled)
            {
                Add(new MotherboardGroup(_smbios, _settings));
            }

            if (_cpuEnabled)
            {
                Add(new CPU.CpuGroup(_settings));
            }

            if (_memoryEnabled)
            {
                Add(new MemoryGroup(_settings));
            }

            if (_gpuEnabled)
            {
                Add(new AmdGpuGroup(_settings));
                Add(new NvidiaGroup(_settings));
            }

            if (_controllerEnabled)
            {
                Add(new TBalancerGroup(_settings));
                Add(new HeatmasterGroup(_settings));
                Add(new AquaComputerGroup(_settings));
            }

            if (_storageEnabled)
            {
                Add(new StorageGroup(_settings));
            }

            if (_networkEnabled)
            {
                Add(new NetworkGroup(_settings));
            }

            HardwareAdded += delegate(IHardware hardware) {
                // Find all Control sensors and give all hardware
                NotifyNotifySoftwareCurveControllersAllHardware();
            };

            HardwareRemoved += delegate(IHardware removed) {
                // Find all Control sensors and notify removed hardware
                foreach (var group in _groups)
                {
                    foreach (var hardware in group.Hardware)
                    {
                        NotifySoftwareCurveControllersHardwareRemoved(hardware, removed);
                    }
                }
            };

            _open = true;
        }