本文整理汇总了C#中PwGroup.GetFullPath方法的典型用法代码示例。如果您正苦于以下问题:C# PwGroup.GetFullPath方法的具体用法?C# PwGroup.GetFullPath怎么用?C# PwGroup.GetFullPath使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PwGroup
的用法示例。
在下文中一共展示了PwGroup.GetFullPath方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: delegate
/*
* public static void ReorderEntriesAsInDatabase(PwObjectList<PwEntry> v,
PwDatabase pd)
{
if((v == null) || (pd == null)) { Debug.Assert(false); return; }
PwObjectList<PwEntry> vRem = v.CloneShallow();
v.Clear();
EntryHandler eh = delegate(PwEntry pe)
{
int p = vRem.IndexOf(pe);
if(p >= 0)
{
v.Add(pe);
vRem.RemoveAt((uint)p);
}
return true;
};
pd.RootGroup.TraverseTree(TraversalMethod.PreOrder, null, eh);
foreach(PwEntry peRem in vRem) v.Add(peRem); // Entries not found
}
* */
private Group GetGroupFromPwGroup(PwGroup pwg)
{
//Debug.Indent();
//Stopwatch sw = Stopwatch.StartNew();
string imageData = iconToBase64(pwg.CustomIconUuid, pwg.IconId);
Group kpg = new Group(pwg.Name, KeePassLib.Utility.MemUtil.ByteArrayToHexString(pwg.Uuid.UuidBytes), imageData, pwg.GetFullPath("/", false));
//sw.Stop();
//Debug.WriteLine("GetGroupFromPwGroup execution time: " + sw.Elapsed);
//Debug.Unindent();
return kpg;
}
示例2: FillGroupPlh
private static string FillGroupPlh(string strData, string strPlhPrefix,
PwGroup pg, SprContext ctx, uint uRecursionLevel)
{
Debug.Assert(strPlhPrefix.StartsWith("{"));
Debug.Assert(!strPlhPrefix.EndsWith("_"));
Debug.Assert(!strPlhPrefix.EndsWith("}"));
string str = strData;
str = SprEngine.FillIfExists(str, strPlhPrefix + @"}",
new ProtectedString(false, pg.Name), ctx, uRecursionLevel);
ProtectedString psGroupPath = new ProtectedString(false, pg.GetFullPath());
str = SprEngine.FillIfExists(str, strPlhPrefix + @"_PATH}", psGroupPath,
ctx, uRecursionLevel);
str = SprEngine.FillIfExists(str, strPlhPrefix + @"PATH}", psGroupPath,
ctx, uRecursionLevel); // Obsolete; for backward compatibility
str = SprEngine.FillIfExists(str, strPlhPrefix + @"_NOTES}",
new ProtectedString(false, pg.Notes), ctx, uRecursionLevel);
return str;
}