Example #1
0
        public GraphDocumentLinkedComObject GetDocumentsComObjectForGraphDocument(GraphDocument doc)
        {
            if (null == doc)
            {
                throw new ArgumentNullException();
            }

            ComDebug.ReportInfo("{0}.GetDocumentsComObjectForGraphDocument Name={1}", GetType().Name, doc.Name);

            if (null != doc && _linkedDocumentsComObjects.ContainsKey(doc))
            {
                return(_linkedDocumentsComObjects[doc]);
            }

            // else we must create a new DocumentComObject
            var newComObject = new GraphDocumentLinkedComObject(doc, _fileComObject, this);

            _linkedDocumentsComObjects.Add(doc, newComObject);
            return(newComObject);
        }
Example #2
0
		public GraphDocumentLinkedComObject GetDocumentsComObjectForGraphDocument(GraphDocument doc)
		{
			if (null == doc)
				throw new ArgumentNullException();

			ComDebug.ReportInfo("{0}.GetDocumentsComObjectForGraphDocument Name={1}", this.GetType().Name, doc.Name);

			if (null != doc && _linkedDocumentsComObjects.ContainsKey(doc))
				return _linkedDocumentsComObjects[doc];

			// else we must create a new DocumentComObject
			var newComObject = new GraphDocumentLinkedComObject(doc, _fileComObject, this);
			_linkedDocumentsComObjects.Add(doc, newComObject);
			return newComObject;
		}