Exemplo n.º 1
0
        int IComparer.Compare(Object x, Object y)
        {
            if (!(x is VaultHistoryItem) || !(y is VaultHistoryItem))
            {
                throw new InvalidCastException("One of objects supplied is not of the valid type.");
            }

            VaultHistoryItem item1 = (VaultHistoryItem)x;
            VaultHistoryItem item2 = (VaultHistoryItem)y;

            return(item2.TxDate.CompareTo(item1.TxDate));
        }
Exemplo n.º 2
0
        private void MergeResults( VaultClientHelper client, VaultHistoryDataSet destination, VaultHistoryItem [] history, string featureTag )
        {
            if( history == null )
                return;

            foreach( VaultHistoryItem item in history )
            {
                if( HistoryQueryHelper.IsChangeRelatedToTask( item.Comment, featureTag ) )
                {
                    destination.Add( client, item );
                }
            }
        }