using System; namespace GZTW.AyaNova.BLL { /// /// A lightweight cell item that /// is used to display relative time /// and is identified as such so it can be sorted /// by it's base field /// /// [Serializable] public class GridRelativeTimeCellItem { private string mDisplay; /// /// /// /// public GridRelativeTimeCellItem(string Display) { mDisplay=Display; } /// /// /// /// public override int GetHashCode() { return this.mDisplay.GetHashCode(); } /// /// /// /// /// public override bool Equals(object obj) { GridRelativeTimeCellItem i=(GridRelativeTimeCellItem)obj; return(i.Display==this.Display); } /// /// necessary to give the grid something to display /// /// public override string ToString() { return mDisplay; } /// /// Public properties used to fetch value back later on when /// retrieving selection from grid /// public string Display { get { return mDisplay; } } } }