Example #1
0
        /// <summary>
        /// Gets the zone by its ID.
        /// </summary>
        /// <param name="zones"></param>
        /// <param name="zoneID"></param>
        /// <returns></returns>
        private WebPartZone GetZoneByID(WebPartZoneCollection zones, string zoneID)
        {
            foreach (WebPartZone zone in zones)
            {
                if (zone.ID == zoneID)
                {
                    return(zone);
                }
            }

            throw new InvalidOperationException("The target zone to which the webpart panel was dragged does not exist.");
        }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Wilco.Web.UI.WebControls.WebParts.WebPartManager"/> class.
 /// </summary>
 public WebPartManager()
 {
     this.zones           = new WebPartZoneCollection();
     this.zoneIDs         = new Dictionary <string, WebPartZone>();
     this.webPartPanelIDs = new Dictionary <string, WebPartPanel>();
 }