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