Exemplo n.º 1
0
 private void InitializeSMBios()
 {
     if (this.smbios == null)
     {
         this.smbios = new SMBIOS();
     }
 }
Exemplo n.º 2
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));
                Add(new Aquacomputer.AquacomputerGroup(settings));
            }

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

            if (nicEnabled)
            {
                nicCount = NetworkInterface.GetAllNetworkInterfaces().Length;
                Add(new Nic.NicGroup(settings));
            }

            open = true;
        }
Exemplo n.º 3
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));
            }

            if (nicEnabled)
            {
                Add(new NIC.NICGroup(settings));
            }

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

            this.smbios = new SMBIOS();

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

            AddGroups();

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

            RemoveGroups();

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

            this.smbios = null;

            open = false;
        }
Exemplo n.º 6
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;
    }
Exemplo n.º 7
0
        public void Close()
        {
            if (!open)
            {
                return;
            }

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

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

            smbios = null;

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

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

            Opcode.Close();
            Ring0.Close();
            OpenHardwareMonitor.Hardware.HDD.HarddriveInformation.clearList();
            this.smbios = null;

            open = false;
        }
Exemplo n.º 9
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));
                Add(new Aquacomputer.AquacomputerGroup(settings));
            }

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

            if (nicEnabled)
            {
                nicCount = NetworkInterface.GetAllNetworkInterfaces().Length;
                Add(new Nic.NicGroup(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;
        }