Example #1
0
		protected PC.SCRelationObjectCollection ToNormalRelation(PC.SCParentsRelationObjectCollection src)
		{
			PC.SCRelationObjectCollection result = null;
			if (src != null)
			{
				result = new PC.SCRelationObjectCollection();
				result.CopyFrom(src);
			}

			return result;
		}
Example #2
0
		protected PC.SCRelationObjectCollection FilterChildren(PC.SCChildrenRelationObjectCollection src, string[] ids)
		{
			PC.SCRelationObjectCollection result = null;
			if (src != null)
			{
				result = new PC.SCRelationObjectCollection();
				foreach (string key in ids)
				{
					result.Add(src[key]);
				}
			}

			return result;
		}