Ejemplo n.º 1
0
 private ContextLayoutManager.LayoutQueue.Request _getNewRequest(
     RadElement e)
 {
     ContextLayoutManager.LayoutQueue.Request request1;
     if (this._pocket != null)
     {
         request1     = this._pocket;
         this._pocket = request1.Next;
         --this._pocketSize;
         ContextLayoutManager.LayoutQueue.Request request2;
         request1.Prev = request2 = (ContextLayoutManager.LayoutQueue.Request)null;
         request1.Next = request2;
     }
     else
     {
         ContextLayoutManager layoutManager = e.LayoutManager as ContextLayoutManager;
         try
         {
             request1 = new ContextLayoutManager.LayoutQueue.Request();
         }
         catch (OutOfMemoryException ex)
         {
             layoutManager?.setForceLayout(e);
             throw ex;
         }
     }
     request1.Target = e;
     return(request1);
 }
Ejemplo n.º 2
0
            private Request _getNewRequest(RadElement e)
            {
                Request request1;

                if (this._pocket != null)
                {
                    Request request2;
                    request1     = this._pocket;
                    this._pocket = request1.Next;
                    this._pocketSize--;
                    request1.Prev = (Request)(request2 = null);
                    request1.Next = request2;
                }
                else
                {
                    ContextLayoutManager manager1 = e.LayoutManager as ContextLayoutManager;
                    try
                    {
                        request1 = new Request();
                    }
                    catch (OutOfMemoryException exception1)
                    {
                        if (manager1 != null)
                        {
                            manager1.setForceLayout(e);
                        }
                        throw exception1;
                    }
                }
                request1.Target = e;
                return(request1);
            }