/// <summary>
        ///    Initializes a new instance of the <see cref="AMLNodeViewModel"/> class.
        /// </summary>
        /// <param name="parent">          The parent.</param>
        /// <param name="CaexNode">        The caex node.</param>
        /// <param name="lazyLoadChildren">if set to <c>true</c> [lazy load children].</param>
        public AMLNodeViewModel(AMLNodeViewModel parent, System.Xml.XmlElement CaexNode, bool lazyLoadChildren)
        {
            _parent   = parent;
            _caexNode = CaexNode;
            _children = new ObservableCollection <AMLNodeViewModel>();

            if (lazyLoadChildren)
            {
                _children.Add(DummyChild);
            }
        }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AMLNodeWithClassReference" /> class.
 /// </summary>
 /// <param name="parent">The parent.</param>
 /// <param name="CaexNode">The caex node.</param>
 /// <param name="lazyLoadChildren">if set to <c>true</c> [lazy load children].</param>
 public AMLNodeWithClassReference(AMLNodeViewModel parent, System.Xml.XmlElement CaexNode, bool lazyLoadChildren) :
     base(parent, CaexNode, lazyLoadChildren)
 {
     SetClassPathReferenceAttribute(this);
     RefreshNodeInformation(false);
 }
 public AmlNodeEventArgs(AMLNodeViewModel source)
     : base()
 {
     Source = source;
 }
Example #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AMLNodeWithoutName" /> class.
 /// </summary>
 /// <param name="parent">The parent.</param>
 /// <param name="CaexNode">The caex node.</param>
 /// <param name="lazyLoadChildren">if set to <c>true</c> [lazy load children].</param>
 public AMLNodeWithoutName(AMLNodeViewModel parent, System.Xml.XmlElement CaexNode, bool lazyLoadChildren) :
     base(parent, CaexNode, lazyLoadChildren)
 {
     SetNameSubstituteAttribute(this);
 }
Example #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AMLNodeWithClassAndRoleReference" /> class.
 /// </summary>
 /// <param name="parent">The parent.</param>
 /// <param name="CaexNode">The caex node.</param>
 /// <param name="lazyLoadChildren">if set to <c>true</c> [lazy load children].</param>
 public AMLNodeWithClassAndRoleReference(AMLNodeViewModel parent, System.Xml.XmlElement CaexNode, bool lazyLoadChildren) :
     base(parent, CaexNode, lazyLoadChildren)
 {
     RefreshNodeInformation(false);
 }