예제 #1
0
        int GetTreeIdForItem(RepObjectInfo currentRepObjectInfo)
        {
            foreach (KeyValuePair <RepObjectInfo, int> item in mListViewItemIds.GetInfoItems())
            {
                if (!currentRepObjectInfo.Equals(item.Key))
                {
                    continue;
                }

                if (!currentRepObjectInfo.GUID.Equals(item.Key.GUID))
                {
                    continue;
                }

                return(item.Value);
            }

            return(-1);
        }
예제 #2
0
        int GetTreeIdForItem(RepObjectInfo repObjectInfo)
        {
            foreach (KeyValuePair <object, int> item in mListViewItemIds.GetInfoItems())
            {
                RepObjectInfo currentRepObjectInfo =
                    mQueryResult.GetRepObjectInfo(item.Key);

                if (!currentRepObjectInfo.Equals(repObjectInfo))
                {
                    continue;
                }

                if (!currentRepObjectInfo.GUID.Equals(repObjectInfo.GUID))
                {
                    continue;
                }

                return(item.Value);
            }

            return(-1);
        }
 void IPlasticAPI.UpdateObjectComment(RepositorySpec repSpec, RepObjectInfo repObject, string newComment)
 {
     throw new NotImplementedException();
 }
 IList <ReplicationSourceInfo> IPlasticAPI.GetReplicationSources(RepositorySpec repSpec, RepObjectInfo repObject)
 {
     throw new NotImplementedException();
 }