mirror of
https://github.com/openhardwaremonitor/openhardwaremonitor
synced 2025-08-29 13:28:04 +00:00
Fixed Issue 11.
This commit is contained in:
parent
28372ca610
commit
051c74a72d
@ -51,16 +51,22 @@ namespace OpenHardwareMonitor.Hardware.Mainboard {
|
|||||||
|
|
||||||
public Mainboard() {
|
public Mainboard() {
|
||||||
this.smbios = new SMBIOS();
|
this.smbios = new SMBIOS();
|
||||||
if (smbios.Board != null && smbios.Board.ProductName != null
|
|
||||||
&& smbios.Board.ProductName != "") {
|
if (smbios.Board != null) {
|
||||||
if (smbios.Board.Manufacturer == Manufacturer.Unkown)
|
if (smbios.Board.ProductName != null
|
||||||
this.name = smbios.Board.ProductName;
|
&& smbios.Board.ProductName != "") {
|
||||||
else
|
if (smbios.Board.Manufacturer == Manufacturer.Unkown)
|
||||||
this.name = smbios.Board.Manufacturer + " " +
|
this.name = smbios.Board.ProductName;
|
||||||
smbios.Board.ProductName;
|
else
|
||||||
|
this.name = smbios.Board.Manufacturer + " " +
|
||||||
|
smbios.Board.ProductName;
|
||||||
|
} else {
|
||||||
|
this.name = smbios.Board.Manufacturer.ToString();
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
this.name = smbios.Board.Manufacturer.ToString();
|
this.name = Manufacturer.Unkown.ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
this.icon = Utilities.EmbeddedResources.GetImage("mainboard.png");
|
this.icon = Utilities.EmbeddedResources.GetImage("mainboard.png");
|
||||||
this.lpcGroup = new LPCGroup();
|
this.lpcGroup = new LPCGroup();
|
||||||
}
|
}
|
||||||
|
@ -69,5 +69,5 @@ using System.Runtime.InteropServices;
|
|||||||
// You can specify all the values or you can default the Build and Revision Numbers
|
// You can specify all the values or you can default the Build and Revision Numbers
|
||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
[assembly: AssemblyVersion("0.1.25.0")]
|
[assembly: AssemblyVersion("0.1.26.0")]
|
||||||
[assembly: AssemblyFileVersion("0.1.25.0")]
|
[assembly: AssemblyFileVersion("0.1.26.0")]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user