예제 #1
0
        internal void ApplySizes(StatusPanel first)
        {
            int i = 0;
            Size clSize = ClientSize;
            foreach (StatusPanel panel in Controls)
            {
                if (first != null && first != panel)
                    continue;
                else
                    first = null;

                if (!panel.Visible)
                    continue;

                panel.PanelLocation = new Point(0, i);
                int height = panel.PanelSize.Height;
                panel.PanelSize = new Size(clSize.Width - 2, height);

                i += height + 1 + PanelSpace;
            }

            this.AutoScrollMinSize = new Size(Width - SystemInformation.VerticalScrollBarWidth - 2, i + 1);
            Invalidate();
        }
예제 #2
0
        public override void Initialize(System.ComponentModel.IComponent component)
        {
            base.Initialize(component);

            _panel = (StatusPanel)component;
        }
예제 #3
0
 internal bool SetCollapsed(StatusPanel statusPanel, bool value)
 {
     return value;
 }