Exemplo n.º 1
0
        public void StartComparison(RelatedItem firstItem, RelatedItem secondItem)
        {
            if (!loadContent(firstItem))
            {
                return;
            }
            var firstRelatedObject = _relatedItemSerializer.Deserialize(firstItem);

            StartComparison(firstRelatedObject, secondItem);
        }
Exemplo n.º 2
0
        protected override void LoadOwnContent(RelatedItem relatedItem)
        {
            var relatedItemObject = _relatedItemSerializer.Deserialize(relatedItem);

            resetObjectIdIfRequired(relatedItemObject);
            this.Visit(relatedItemObject);
        }
Exemplo n.º 3
0
 protected override void LoadOwnContent(RelatedItem relatedItem)
 {
     try
     {
         var relatedItemObject = _relatedItemSerializer.Deserialize(relatedItem);
         this.Visit(relatedItemObject);
     }
     catch (NotUniqueIdException)
     {
         //Probably trying to load an object that was already loaded. Show a message to the user
         throw new OSPSuiteException(AppConstants.Exceptions.CannotLoadRelatedItemAsObjectAlreadyExistInProject(relatedItem.ItemType, relatedItem.Name));
     }
 }