public void StartComparison(RelatedItem firstItem, RelatedItem secondItem) { if (!loadContent(firstItem)) { return; } var firstRelatedObject = _relatedItemSerializer.Deserialize(firstItem); StartComparison(firstRelatedObject, secondItem); }
protected override void LoadOwnContent(RelatedItem relatedItem) { var relatedItemObject = _relatedItemSerializer.Deserialize(relatedItem); resetObjectIdIfRequired(relatedItemObject); this.Visit(relatedItemObject); }
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)); } }