Added a desktop gadget implementation.

This commit is contained in:
Michael Möller
2010-09-06 19:53:13 +00:00
parent 0d091fe5f2
commit 39600d1cf3
24 changed files with 1327 additions and 61 deletions

View File

@@ -40,7 +40,7 @@ using System.Collections.Generic;
using System.Text;
namespace OpenHardwareMonitor.Hardware {
public class Identifier {
public class Identifier : IComparable<Identifier> {
private string identifier;
private static char SEPARATOR = '/';
@@ -92,5 +92,12 @@ namespace OpenHardwareMonitor.Hardware {
public override int GetHashCode() {
return identifier.GetHashCode();
}
public int CompareTo(Identifier other) {
if (other == null)
return 1;
else
return this.identifier.CompareTo(other.identifier);
}
}
}