public bool Equals(DesktopIcon p)
 {
     if ((object)p == null)
     {
         return(false);
     }
     return((x == p.x) && (y == p.y) && (name == p.name));
 }
        public override bool Equals(System.Object obj)
        {
            if (obj == null)
            {
                return(false);
            }
            DesktopIcon p = obj as DesktopIcon;

            if ((System.Object)p == null)
            {
                return(false);
            }
            return((x == p.x) && (y == p.y));
        }