Fixed Issue 11.

This commit is contained in:
Michael Möller 2010-03-08 19:42:42 +00:00
parent 28372ca610
commit 051c74a72d
2 changed files with 16 additions and 10 deletions

View File

@ -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();
} }

View File

@ -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")]