Ejemplo n.º 1
0
 /// <summary>
 /// Checks if two proxies have the same RootNode.
 /// </summary>
 /// <param name="proxy1">first proxy</param>
 /// <param name="proxy2">second proxy</param>
 /// <returns>True if both entries are proxies which are linked to the same root.</returns>
 private bool AreEqualProxies(PwEntry proxy1, PwEntry proxy2)
 {
     //proxies are equal if they have the same origParent AND are same proxy types AND if the link to the same rootNode_X
     return(proxy1 != null &&
            proxy2 != null &&
            proxy1.ParentGroup == proxy2.ParentGroup &&
            proxy1.ProxyTargetIdentifier() == proxy2.ProxyTargetIdentifier());
 }
Ejemplo n.º 2
0
 public static bool IsProxyOf(this PwEntry proxy, PwEntry target)
 {
     return(proxy.ProxyTargetIdentifier() == target.Uuid.ToHexString());
 }