public HWPanel(IHardware board, HWType type, IHardware hardware, StackPanel parent)
                {
                    Type = type;

                    Hardware = hardware;

                    StackPanel = new StackPanel();
                    StackPanel.Style = (Style)Application.Current.FindResource("HardwarePanel");
                    parent.Children.Add(StackPanel);

                    TextBlock _subtitle = new TextBlock();
                    _subtitle.Style = (Style)Application.Current.FindResource("AppSubtitle");
                    _subtitle.Text = hardware.Name;
                    StackPanel.Children.Add(_subtitle);

                    Sensors = new List<HWSensor>();

                    UpdateHardware();

                    switch (type)
                    {
                        case HWType.CPU:
                            InitCPU(board);
                            break;

                        case HWType.RAM:
                            InitRAM(board);
                            break;

                        case HWType.GPU:
                            InitGPU();
                            break;
                    }

                    Update(false);
                }