/// <summary> /// Generates the rule from its XML representation. /// </summary> /// <param name="reader">The XML reader.</param> protected override void OnReadXml(XmlReader reader) { string str; base.OnReadXml(reader); if (((str = reader.Name) != null) && (str == "Operator")) { this.op = (DateOccurringType)Serializer.DeserializeObj(typeof(DateOccurringType), reader); } }
/// <summary> /// Creates a data occurring rule with specified parameters. /// </summary> /// <param name="op"> /// The <see cref="T:Dt.Cells.Data.DateOccurringType" /> data occurring rule. /// </param> /// <param name="style">The style that is set by the rule.</param> /// <returns>The new data occurring rule.</returns> public static DateOccurringRule Create(DateOccurringType op, StyleInfo style) { return(new DateOccurringRule(op, style)); }
/// <summary> /// Resets the rule. /// </summary> protected override void Reset() { base.Reset(); this.op = DateOccurringType.Today; }
/// <summary> /// Creates a new text rule with the specified comparison operator, text, and style. /// </summary> /// <param name="op">The comparison operator.</param> /// <param name="style">The cell style.</param> internal DateOccurringRule(DateOccurringType op, StyleInfo style) : base(style) { this.op = op; }
/// <summary> /// Creates a new date condition with the specified date occurring type. /// </summary> /// <param name="occurring">The date occurring type for this condition.</param> internal DateExCondition(DateOccurringType occurring) : base(occurring, null) { }