Esempio n. 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();
        }
Esempio n. 2
0
        public override void Initialize(System.ComponentModel.IComponent component)
        {
            base.Initialize(component);

            _panel = (StatusPanel)component;
        }
Esempio n. 3
0
 internal bool SetCollapsed(StatusPanel statusPanel, bool value)
 {
     return value;
 }