Пример #1
0
        public void SortEntries(string groupId)
        {
            var pwGroup  = _pwDatabase.RootGroup.FindGroup(BuildIdFromString(groupId), true);
            var comparer = new PwEntryComparer(PwDefs.TitleField, true, false);

            pwGroup.Entries.Sort(comparer);
        }
Пример #2
0
        private static void SortGroupEntriesRecursive(PwGroup pg, string strFieldName)
        {
            PwEntryComparer cmp = new PwEntryComparer(strFieldName, true, true);

            pg.Entries.Sort(cmp);

            foreach (PwGroup pgSub in pg.Groups)
            {
                SortGroupEntriesRecursive(pgSub, strFieldName);
            }
        }
Пример #3
0
		private void SortGroupEntriesRecursive(PwGroup pg, string strFieldName)
		{
			PwEntryComparer cmp = new PwEntryComparer(strFieldName, true, true);
			pg.Entries.Sort(cmp);

			foreach(PwGroup pgSub in pg.Groups)
			{
				SortGroupEntriesRecursive(pgSub, strFieldName);
			}
		}