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