Пример #1
0
        public LayerCollectionEnumerator GetEnumerator()
        {
            LayerCollectionEnumerator enumerator1 = this;

            enumerator1.Reset();
            return(enumerator1);
        }
Пример #2
0
        IEnumerator IEnumerable.GetEnumerator()
        {
            LayerCollectionEnumerator enumerator1 = this;

            enumerator1.Reset();
            return(enumerator1);
        }
Пример #3
0
 public DiagramLayer Find(object identifier)
 {
     if (identifier != null)
     {
         LayerCollectionEnumerator enumerator1 = this.Backwards.GetEnumerator();
         while (enumerator1.MoveNext())
         {
             DiagramLayer layer1 = enumerator1.Current;
             object       obj1   = layer1.Identifier;
             if ((obj1 != null) && obj1.Equals(identifier))
             {
                 return(layer1);
             }
         }
     }
     return(null);
 }
Пример #4
0
        public virtual Shapes.IDiagramPort PickNearestPort(PointF dc)
        {
            Shapes.IDiagramPort port1 = null;
            float single1             = base.View.PortGravity;

            single1 *= single1;
            LayerCollectionEnumerator enumerator1 = base.View.Layers.Backwards.GetEnumerator();

            while (enumerator1.MoveNext())
            {
                DiagramLayer layer1 = enumerator1.Current;
                if (layer1.IsInDocument && layer1.CanViewObjects())
                {
                    LayerEnumerator enumerator3 = layer1.Backwards.GetEnumerator();
                    while (enumerator3.MoveNext())
                    {
                        Shapes.DiagramShape obj1 = enumerator3.Current;
                        port1 = this.pickNearestPort1(obj1, dc, port1, ref single1);
                    }
                }
            }
            return(port1);
        }