Beispiel #1
0
		public ProxyTreeGridRenderer GetTreeGridViewDetails(bool readOnly, long selectedObj, string classname)
		{
			TreeGridViewRenderer item = new RenderHierarcyDetails(readOnly).GetRootObject(selectedObj, classname);
			ProxyTreeGridRenderer proxy = new ProxyTreeGridRenderer().ConvertObject(item );
			return proxy;
		}
Beispiel #2
0
		public List<ProxyTreeGridRenderer> TransverseTreeGridViewDetails(bool readOnly,long id, string classname)
		{
			List<TreeGridViewRenderer> list = new RenderHierarcyDetails(readOnly).TraverseObjTree(id, classname);
			return ConvertToProxyTreeGridRendererList(list );
		}
Beispiel #3
0
		public List<TreeGridViewRenderer> ExpandTreeGidNode(bool readOnly,object id, bool activate)
		{
            if (id == null)
                return null;

			RenderHierarcyDetails clsRenderHierarchyDetails = new RenderHierarcyDetails(readOnly);
			object currObject;
			long lngId;
			if (id is ICollection || id is DictionaryEntry  )
			{
				currObject = id;
				if (IsArray(id))
					return clsRenderHierarchyDetails.ExpandArrayNode(currObject);
			}

			lngId = Convert.ToInt64(id);
			currObject = Db4oClient.Client.Ext().GetByID(lngId);
            if (CheckForCollection(lngId) || currObject is IEnumerable)
				return clsRenderHierarchyDetails.ExpandCollectionNode(currObject as IEnumerable);
			if (IsArray(lngId))
				return clsRenderHierarchyDetails.ExpandArrayNode(currObject);
            //check this later
            if (!IsPrimitive(lngId))
                return null;
			return clsRenderHierarchyDetails.ExpandObjectNode(currObject, activate);
		}