Beispiel #1
0
        public override bool Equals(object obj)
        {
            FilterItem otherItem = obj as FilterItem;

            if (otherItem != null)
            {
                if (otherItem.Item.Equals(this.Item))
                {
                    return(true);
                }
            }
            return(false);
        }
Beispiel #2
0
        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);
            }
        }
Beispiel #3
0
 public FilterStruct(String property, Button button, FilterItem value)
 {
     this.value    = value;
     this.button   = button;
     this.property = property;
 }