close #253
This commit is contained in:
1 parent
25a6117ee1
commit
d4e32272a2
19 files changed
+349
-148
No files matched your search
@@ -0,0 +1,15 @@
|
||||
using System.Collections.Generic;
|
||||
using HandyControl.Data;
|
||||
|
||||
namespace HandyControl.Collections
|
||||
{
|
||||
public class DateTimeRangeComparer : IComparer<DateTimeRange>
|
||||
{
|
||||
public int Compare(DateTimeRange x, DateTimeRange y)
|
||||
{
|
||||
if (x.Start > y.Start && x.End > y.End) return 1;
|
||||
if (x.Start < y.Start && x.End < y.End) return -1;
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user