Beispiel #1
0
 public void Save(XmlWriter writer)
 {
     writer.WriteAttributeGuid("id", Id);
     writer.WriteAttributeEnum("type", MatchType);
     writer.WriteAttributeString("value", Value);
     writer.WriteAttributeBool("ignorecase", IgnoreCase);
     writer.WriteAttributeBool("isinclude", IsInverted);
 }
Beispiel #2
0
        public void Save(XmlWriter writer)
        {
            writer.WriteAttributeString("file", File);
            writer.WriteAttributeBool("followtail", FollowTail);
            writer.WriteAttributeBool("showlinenumbers", ShowLineNumbers);
            writer.WriteAttributeString("searchterm", SearchTerm);
            writer.WriteAttributeEnum("levelfilter", LevelFilter);
            writer.WriteAttributeBool("colorbylevel", ColorByLevel);
            writer.WriteAttributeInt("visibleentryindex", (int) VisibleLogLine);
            writer.WriteAttributeGuid("id", Id);
            writer.WriteAttributeGuid("parentid", ParentId);
            writer.WriteAttributeDateTime("lastviewed", LastViewed);
            writer.WriteAttributeDouble("horizontaloffset", HorizontalOffset);

            writer.WriteStartElement("activatedquickfilters");
            foreach (Guid guid in ActivatedQuickFilters)
            {
                writer.WriteStartElement("quickfilter");
                writer.WriteAttributeGuid("id", guid);
                writer.WriteEndElement();
            }
            writer.WriteEndElement();
        }