mirror of
https://github.com/openhardwaremonitor/openhardwaremonitor
synced 2025-09-01 06:45:12 +00:00
Added a desktop gadget implementation.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user