Inheritance: System.Collections.ReadOnlyCollectionBase
Exemplo 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);
        }
Exemplo n.º 2
0
 public void AddElements(ElementCollection els)
 {
     AddElements(els.GetArray());
 }
		public ElementSelectionEventArgs(ElementCollection elements)
		{
			this.elements = elements;
		}
Exemplo n.º 4
0
 public ElementSelectionEventArgs(ElementCollection elements)
 {
     this.elements = elements;
 }
Exemplo n.º 5
0
		public void AddElements(ElementCollection els)
		{
			AddElements(els.GetArray());
		}
Exemplo n.º 6
0
			BaseElementEnumarator(ElementCollection mapping): base()
			{
				tmp = (IEnumerable) mapping;
				baseEnumarator = tmp.GetEnumerator();
			}
Exemplo 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;
		}
Exemplo n.º 8
0
 BaseElementEnumarator(ElementCollection mapping) : base()
 {
     tmp            = (IEnumerable)mapping;
     baseEnumarator = tmp.GetEnumerator();
 }