private void StartGroup(PwGroup pg) { m_xmlWriter.WriteStartElement(ElemGroup); WriteObject(ElemUuid, pg.Uuid); WriteObject(ElemName, pg.Name, true); WriteObject(ElemNotes, pg.Notes, true); WriteObject(ElemIcon, (int)pg.IconId); if (!pg.CustomIconUuid.Equals(PwUuid.Zero)) { WriteObject(ElemCustomIconID, pg.CustomIconUuid); } WriteList(ElemTimes, pg); WriteObject(ElemIsExpanded, pg.IsExpanded); WriteObject(ElemGroupDefaultAutoTypeSeq, pg.DefaultAutoTypeSequence, true); WriteObject(ElemEnableAutoType, StrUtil.BoolToStringEx(pg.EnableAutoType), false); WriteObject(ElemEnableSearching, StrUtil.BoolToStringEx(pg.EnableSearching), false); WriteObject(ElemLastTopVisibleEntry, pg.LastTopVisibleEntry); if (pg.CustomData.Count > 0) { WriteList(ElemCustomData, pg.CustomData); } }
private void StartGroup(PwGroup pg) { m_xmlWriter.WriteStartElement(ElemGroup); WriteObject(ElemUuid, pg.Uuid); WriteObject(ElemName, pg.Name, true); WriteObject(ElemNotes, pg.Notes, true); WriteObject(ElemIcon, (int)pg.IconId); if (!pg.CustomIconUuid.Equals(PwUuid.Zero)) { WriteObject(ElemCustomIconID, pg.CustomIconUuid); } WriteList(ElemTimes, pg); WriteObject(ElemIsExpanded, pg.IsExpanded); WriteObject(ElemGroupDefaultAutoTypeSeq, pg.DefaultAutoTypeSequence, true); WriteObject(ElemEnableAutoType, StrUtil.BoolToStringEx(pg.EnableAutoType), false); WriteObject(ElemEnableSearching, StrUtil.BoolToStringEx(pg.EnableSearching), false); WriteObject(ElemLastTopVisibleEntry, pg.LastTopVisibleEntry); if (m_uFileVersion >= FileVersion32_4_1) { if (!pg.PreviousParentGroup.Equals(PwUuid.Zero)) { WriteObject(ElemPreviousParentGroup, pg.PreviousParentGroup); } List <string> lTags = pg.Tags; if (lTags.Count != 0) { WriteObject(ElemTags, StrUtil.TagsToString(lTags, false), true); } } if (pg.CustomData.Count > 0) { WriteList(ElemCustomData, pg.CustomData); } }