Beispiel #1
0
        /// <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)));
        }
Beispiel #2
0
 /// <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));
 }
Beispiel #3
0
 public bool Equals(SafeNotifyIconData other)
 {
     return((HWnd.Equals(other.hWnd) && UID.Equals(other.uID)) || (other.guidItem != Guid.Empty && GUID.Equals(other.guidItem)));
 }