コード例 #1
0
ファイル: BaseTreeNode.cs プロジェクト: NanoFabricFX/ASMD
 /// <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());
     }
 }
コード例 #2
0
ファイル: InstanceDesign.cs プロジェクト: mpostol/ASMD
        /// <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());
        }
コード例 #3
0
 internal static bool IsNullOrEmpty(UniqueIdentifier ui)
 {
     if (ui != null)
     {
         return(string.IsNullOrEmpty(ui.Name) && string.IsNullOrEmpty(ui.Namespace));
     }
     return(true);
 }
コード例 #4
0
ファイル: InstanceDesign.cs プロジェクト: mpostol/ASMD
 protected override void AddNodeDescriptors(List <INodeDescriptor> dsptrs, UniqueIdentifier ui)
 {
     ui.Update(false, Wrapper.SymbolicName.XmlQualifiedName, false);
     base.AddNodeDescriptors(dsptrs, ui);
 }
コード例 #5
0
ファイル: InstanceDesign.cs プロジェクト: mpostol/ASMD
 /// <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));
 }
コード例 #6
0
ファイル: WrapperTreeNode.cs プロジェクト: lwh125630hui/ASMD
 /// <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);
 }