Inheritance: System.Collections.ReadOnlyCollectionBase
Esempio n. 1
0
        public virtual ElementCollection GetLinkedNodes()
        {
            ElementCollection ec = new ElementCollection();

            foreach (ConnectorElement ce in connects)
            {
                foreach (BaseLinkElement le in ce.Links)
                {
                    if (le.Connector1 == ce)
                    {
                        ec.Add(le.Connector2.ParentElement);
                    }
                    else
                    {
                        ec.Add(le.Connector1.ParentElement);
                    }
                }
            }

            return(ec);
        }
Esempio n. 2
0
 public void AddElements(ElementCollection els)
 {
     AddElements(els.GetArray());
 }
		public ElementSelectionEventArgs(ElementCollection elements)
		{
			this.elements = elements;
		}
 public ElementSelectionEventArgs(ElementCollection elements)
 {
     this.elements = elements;
 }
Esempio n. 5
0
		public void AddElements(ElementCollection els)
		{
			AddElements(els.GetArray());
		}
Esempio n. 6
0
			BaseElementEnumarator(ElementCollection mapping): base()
			{
				tmp = (IEnumerable) mapping;
				baseEnumarator = tmp.GetEnumerator();
			}
Esempio n. 7
0
		public virtual ElementCollection GetLinkedNodes()
		{
			ElementCollection ec = new ElementCollection();

			foreach(ConnectorElement ce in connects)
			{
				foreach(BaseLinkElement le in ce.Links)
				{
					if (le.Connector1 == ce)
					{
						ec.Add(le.Connector2.ParentElement);
					}
					else
					{
						ec.Add(le.Connector1.ParentElement);
					}
				}
			}
			
			return ec;
		}
Esempio n. 8
0
 BaseElementEnumarator(ElementCollection mapping) : base()
 {
     tmp            = (IEnumerable)mapping;
     baseEnumarator = tmp.GetEnumerator();
 }