using System; namespace DebuggingEssentials { public class CullItem : IComparable { public bool isHeader; public int id; public double startHeight; public double endHeight; public CullItem(int id) { this.id = id; } public void Draw(ref double startHeight) { this.startHeight = startHeight; startHeight += CalcHeight(); endHeight = startHeight; } public int CompareTo(double compareValue) { if (endHeight > compareValue) { return 1; } if (endHeight < compareValue) { return -1; } return 0; } public virtual DrawResult DoDraw() { return DrawResult.Draw; } public virtual float CalcHeight() { return -1f; } } }