示例#1
0
        protected virtual Zone CreateZoneForContent(State zoneState, ContainerControl destination)
        {
            DockStyle ds;
            Direction direction;

            // Find relevant values dependant on required state
            ValuesFromState(zoneState, out ds, out direction);

            // Create a new ZoneSequence which can host Content
            ZoneSequence zs = new ZoneSequence(this, zoneState, _visualStyle, direction, _zoneMinMax);

            // Set the appropriate docking style
            zs.Dock = ds;

            if (destination != null)
            {
                // Add this Zone to the display
                destination.Controls.Add(zs);
            }

            return zs;
        }
示例#2
0
 public HotZoneSequence(Rectangle hotArea, Rectangle newSize, ZoneSequence zs, int index)
     : base(hotArea, newSize)
 {
     _index = index;
     _zs = zs;
 }