コード例 #1
0
ファイル: RecentDocumentInfo.cs プロジェクト: zparr/ATF
        /// <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);
        }
コード例 #2
0
ファイル: RecentDocumentInfo.cs プロジェクト: zparr/ATF
        /// <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));
        }
コード例 #3
0
 private void RemoveDocument(RecentDocumentInfo info)
 {
     m_recentDocuments.Remove(info);
 }
コード例 #4
0
 private void RemoveDocument(RecentDocumentInfo info)
 {
     m_recentDocuments.Remove(info);
 }