public override int GetHashCode() { unchecked { var hashCode = HasAccelerator.GetHashCode(); hashCode = (hashCode * 397) ^ HasBackColor.GetHashCode(); hashCode = (hashCode * 397) ^ HasForeColor.GetHashCode(); hashCode = (hashCode * 397) ^ HasItems.GetHashCode(); hashCode = (hashCode * 397) ^ HasListIndex.GetHashCode(); hashCode = (hashCode * 397) ^ HasMouseIcon.GetHashCode(); hashCode = (hashCode * 397) ^ HasMousePointer.GetHashCode(); hashCode = (hashCode * 397) ^ HasMultiRow.GetHashCode(); hashCode = (hashCode * 397) ^ HasNames.GetHashCode(); hashCode = (hashCode * 397) ^ HasNewVersion.GetHashCode(); hashCode = (hashCode * 397) ^ HasSize.GetHashCode(); hashCode = (hashCode * 397) ^ HasTabData.GetHashCode(); hashCode = (hashCode * 397) ^ HasTabFixedHeight.GetHashCode(); hashCode = (hashCode * 397) ^ HasTabFixedWidth.GetHashCode(); hashCode = (hashCode * 397) ^ HasTabOrientation.GetHashCode(); hashCode = (hashCode * 397) ^ HasTabsAllocated.GetHashCode(); hashCode = (hashCode * 397) ^ HasTabStyle.GetHashCode(); hashCode = (hashCode * 397) ^ HasTags.GetHashCode(); hashCode = (hashCode * 397) ^ HasTipStrings.GetHashCode(); hashCode = (hashCode * 397) ^ HasTooltips.GetHashCode(); hashCode = (hashCode * 397) ^ HasVariousPropertyBits.GetHashCode(); return(hashCode); } }
public void AutoAdjust() { if (Title.IsNullOrEmptyOrWhiteSpace()) { HtmlToText convert = new HtmlToText(); string _text = convert.Convert(this.Content); Title = _text.GetSentences().FirstOrDefault(); } if (Title.ToLower().Contains("[daily]")) { Repeat = ScheduleType.Daily; } if (Title.ToLower().Contains("[weekly]")) { Repeat = ScheduleType.Weekly; } if (Title.ToLower().Contains("[monthly]")) { Repeat = ScheduleType.Monthly; } if (Title.ToLower().Contains("[quaterly]")) { Repeat = ScheduleType.Quaterly; } if (Title.ToLower().Contains("[yearly]")) { Repeat = ScheduleType.Yearly; } //AutoSetTime this.AutoSetTimes(); //HasTags string[] _hasTags = Content.GetHasTags(); if (_hasTags != null && _hasTags.Count() > 0) { foreach (string _hasTag in _hasTags) { HasTags.Add(_hasTag); } } //Links //Links = this.Content.GetUrls().ToList(); }
public bool HasTag() { if (Content.IsNullOrEmptyOrWhiteSpace()) { return(false); } else { string[] _hasTags = Content.GetHasTags(); if (_hasTags != null && _hasTags.Count() > 0) { foreach (string _hasTag in _hasTags) { HasTags.Add(_hasTag); } } return(true); } }