/// <summary> /// Checks the equality of the icon based on the hWnd and uID; /// </summary> /// <param name="other">The other NotifyIcon to compare to.</param> /// <returns>Indication of equality.</returns> public bool Equals(NotifyIcon other) { if (other == null) { return(false); } return((HWnd.Equals(other.HWnd) && UID.Equals(other.UID)) || (other.GUID != Guid.Empty && GUID.Equals(other.GUID))); }
/// <summary> /// Checks the equality of the icon based on the hWnd and uID; /// </summary> /// <param name="other">The other NotifyIcon to compare to.</param> /// <returns>Indication of equality.</returns> public bool Equals(NotifyIcon other) { return(HWnd.Equals(other.HWnd) && UID.Equals(other.UID)); }
public bool Equals(SafeNotifyIconData other) { return((HWnd.Equals(other.hWnd) && UID.Equals(other.uID)) || (other.guidItem != Guid.Empty && GUID.Equals(other.guidItem))); }