Exemplo n.º 1
0
        /// <summary>
        /// Indicates whether this instance and a specified object are equal</summary>
        /// <param name="obj">Another object to compare to</param>
        /// <returns>True iff obj and this instance are the same type and represent
        /// the same value</returns>
        public override bool Equals(object obj)
        {
            RecentDocumentInfo other = obj as RecentDocumentInfo;

            return
                (other != null &&
                 Uri == other.Uri &&
                 m_type == other.m_type);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Compare function for recent documents</summary>
        /// <param name="obj">Object to compare to</param>
        /// <returns>-1, 0 or 1 depending on compare</returns>
        int IComparable.CompareTo(object obj)
        {
            RecentDocumentInfo other = obj as RecentDocumentInfo;

            if (other == null)
            {
                return(0);
            }

            return
                (m_index.CompareTo(other.m_index));
        }
Exemplo n.º 3
0
 private void RemoveDocument(RecentDocumentInfo info)
 {
     m_recentDocuments.Remove(info);
 }
 private void RemoveDocument(RecentDocumentInfo info)
 {
     m_recentDocuments.Remove(info);
 }