You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
761 B
34 lines
761 B
using System;
|
|
|
|
namespace Microsoft.Windows.Controls
|
|
{
|
|
public class TimeItem
|
|
{
|
|
public string Display { get; set; }
|
|
public TimeSpan Time { get; set; }
|
|
|
|
public TimeItem(string display, TimeSpan time)
|
|
{
|
|
Display = display;
|
|
Time = time;
|
|
}
|
|
|
|
#region Base Class Overrides
|
|
|
|
public override bool Equals(object obj)
|
|
{
|
|
var item = obj as TimeItem;
|
|
if (item != null)
|
|
return Time == item.Time;
|
|
else
|
|
return false;
|
|
}
|
|
|
|
public override int GetHashCode()
|
|
{
|
|
return Time.GetHashCode();
|
|
}
|
|
|
|
#endregion //Base Class Overrides
|
|
}
|
|
}
|
|
|