mirror of
https://github.com/terrymacdonald/DisplayMagician.git
synced 2024-08-30 18:32:20 +00:00
Fixed error in comparison function
This commit is contained in:
parent
cab056b7fd
commit
7772b27f89
@ -363,13 +363,13 @@ namespace DisplayMagicianShared.AMD
|
||||
return _screens;
|
||||
}
|
||||
|
||||
public int CompareTo(object obj)
|
||||
/*public int CompareTo(object obj)
|
||||
{
|
||||
if (!(obj is AMDProfileItem)) throw new ArgumentException("Object to CompareTo is not a AMDProfileItem"); ;
|
||||
if (!(obj is ProfileItem)) throw new ArgumentException("Object to CompareTo is not a AMDProfileItem"); ;
|
||||
|
||||
AMDProfileItem otherProfile = (AMDProfileItem)obj;
|
||||
return this.Name.CompareTo(otherProfile.Name);
|
||||
}
|
||||
}*/
|
||||
|
||||
// The public override for the Object.Equals
|
||||
public override bool Equals(object obj) => this.Equals(obj as AMDProfileItem);
|
||||
|
@ -548,13 +548,13 @@ namespace DisplayMagicianShared.NVIDIA
|
||||
return _screens;
|
||||
}
|
||||
|
||||
public int CompareTo(object obj)
|
||||
/*public int CompareTo(object obj)
|
||||
{
|
||||
if (!(obj is NVIDIAProfileItem)) throw new ArgumentException("Object to CompareTo is not a NVIDIAProfileItem"); ;
|
||||
|
||||
NVIDIAProfileItem otherProfile = (NVIDIAProfileItem)obj;
|
||||
return this.Name.CompareTo(otherProfile.Name);
|
||||
}
|
||||
}*/
|
||||
|
||||
// The public override for the Object.Equals
|
||||
public override bool Equals(object obj) => this.Equals(obj as NVIDIAProfileItem);
|
||||
|
@ -502,11 +502,6 @@ namespace DisplayMagicianShared
|
||||
return new List<ScreenPosition>();
|
||||
}
|
||||
|
||||
/*public int CompareTo(ProfileItem other)
|
||||
{
|
||||
return this.Name.CompareTo(other.Name);
|
||||
}*/
|
||||
|
||||
public int CompareTo(object obj)
|
||||
{
|
||||
if (!(obj is ProfileItem)) throw new ArgumentException("Object to CompareTo is not a Shortcut"); ;
|
||||
|
@ -311,13 +311,13 @@ namespace DisplayMagicianShared.Windows
|
||||
return _screens;
|
||||
}
|
||||
|
||||
public int CompareTo(object obj)
|
||||
/*public int CompareTo(object obj)
|
||||
{
|
||||
if (!(obj is WinProfileItem)) throw new ArgumentException("Object to CompareTo is not a WinProfileItem"); ;
|
||||
|
||||
WinProfileItem otherProfile = (WinProfileItem)obj;
|
||||
return this.Name.CompareTo(otherProfile.Name);
|
||||
}
|
||||
}*/
|
||||
|
||||
|
||||
// The public override for the Object.Equals
|
||||
|
Loading…
Reference in New Issue
Block a user