public override bool Equals(object obj) { FilterItem otherItem = obj as FilterItem; if (otherItem != null) { if (otherItem.Item.Equals(this.Item)) { return(true); } } return(false); }
public int CompareTo(object obj) { FilterItem otherFilterItem = (FilterItem)obj; if (this.Item == null && obj == null) { return(0); } else if (otherFilterItem.Item != null && this.Item != null) { return(((IComparable)item).CompareTo((IComparable)otherFilterItem.item)); } else { return(-1); } }
public FilterStruct(String property, Button button, FilterItem value) { this.value = value; this.button = button; this.property = property; }