Esempio n. 1
0
        public override bool?Match(IXenObject o)
        {
            object value = CustomFieldsManager.GetCustomFieldValue(o, definition);

            if (!(value is DateTime))
            {
                return(false);
            }

            return(DatePropertyQuery.MatchDate((DateTime)value, query, type, DateTime.Now));
        }
Esempio n. 2
0
        public override bool Equals(object obj)
        {
            if (!base.Equals(obj))
            {
                return(false);
            }

            DatePropertyQuery other = obj as DatePropertyQuery;

            if (other == null)
            {
                return(false);
            }

            return(other.type == this.type && other.query == this.query);
        }