Beispiel #1
0
        protected virtual void setRegionFlags()
        {
            if (this._attributes.ContainsKey("isEditable"))
            {
                this._isEditable = bool.Parse(this._attributes["isEditable"]);
            }

            if (this._attributes.ContainsKey("isDefault"))
            {
                this._isDefualt = bool.Parse(this._attributes["isDefault"]);
            }

            if (this._attributes.ContainsKey("regionType"))
            {
                this._regionType = (RegionPanelType)Enum.Parse(typeof(RegionPanelType), this._attributes["regionType"]);
            }
        }
 /// <summary>
 /// Constrcutor to initialize a RegionPanel.
 /// </summary>
 /// <param name="regionID">The Region's ID used to match regions from panels, placeholders, templates, content, etc.</param>
 /// <param name="regionType">A RegionPanelType flag to specify the type of panel this is.</param>
 public RegionPanel(string regionID, RegionPanelType regionType)
     : base()
 {
     _regionID   = regionID;
     _regionType = regionType;
 }
 /// <summary>
 /// Constrcutor to initialize a RegionPanel.
 /// </summary>
 /// <param name="regionType">A RegionPanelType flag to specify the type of panel this is.</param>
 public RegionPanel(RegionPanelType regionType)
     : this("", regionType)
 {
 }