/// <summary> /// If implemented in the derived class adds the node descriptors. /// </summary> /// <param name="dsptrs">The node descriptor.</param> /// <param name="ui">The unique identifier.</param> protected virtual void AddNodeDescriptors(List <INodeDescriptor> dsptrs, UniqueIdentifier ui) { foreach (BaseTreeNode item in this) { item.AddNodeDescriptors(dsptrs, ui.MemberwiseClone()); } }
/// <summary> /// Gets the node descriptors. /// </summary> /// <returns> /// Instance of <see cref="INodeDescriptor"/> containing node descriptor. /// </returns> internal override INodeDescriptor[] GetNodeDescriptors() { List <INodeDescriptor> _descriptors = new List <INodeDescriptor>(); UniqueIdentifier ui = new UniqueIdentifier(); AddNodeDescriptors(_descriptors, ui); return(_descriptors.ToArray()); }
internal static bool IsNullOrEmpty(UniqueIdentifier ui) { if (ui != null) { return(string.IsNullOrEmpty(ui.Name) && string.IsNullOrEmpty(ui.Namespace)); } return(true); }
protected override void AddNodeDescriptors(List <INodeDescriptor> dsptrs, UniqueIdentifier ui) { ui.Update(false, Wrapper.SymbolicName.XmlQualifiedName, false); base.AddNodeDescriptors(dsptrs, ui); }
/// <summary> /// Retrieves an instance of the interface <see cref="INodeDescriptor"/> that provides the description of the node to be /// bind with an external data source. /// </summary> /// <param name="UniqueIdentifierOfRequestedWrapper">The unique identifier of requested node descriptor.</param> /// <returns> /// An instance of the interface <see cref="INodeDescriptor"/> to be bound with external data source. /// </returns> internal override INodeDescriptor GetINodeDescriptor(UniqueIdentifier UniqueIdentifierOfRequestedWrapper) { return(Wrapper.GetINodeDescriptor(UniqueIdentifierOfRequestedWrapper, NodeClass)); }
/// <summary> /// Retries za instance of the interface <see cref="INodeDescriptor"/> that provides the description of the node to be /// bind with an external data source. /// </summary> /// <param name="UniqueIdentifierOfRequestedWrapper">The unique identifier of requested node descriptor.</param> /// <returns> /// An instance of the interface <see cref="INodeDescriptor"/> to be bound with external data source. /// </returns> internal virtual INodeDescriptor GetINodeDescriptor(UniqueIdentifier UniqueIdentifierOfRequestedWrapper) { return(null); }