/// <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()); }
public static bool IsProxyOf(this PwEntry proxy, PwEntry target) { return(proxy.ProxyTargetIdentifier() == target.Uuid.ToHexString()); }