Beispiel #1
0
        public override void ShowPane()
        {
            int y = 0;
            BookmarksOptionsPane lastPane = null;

            foreach (OptionsPaneCreator creator in _creators)
            {
                BookmarksOptionsPane pane = (BookmarksOptionsPane)creator();
                pane.IsStartupPane = IsStartupPane;
                pane.ShowPane();
                pane.Top    = y;
                y          += pane.OccupiedHeight;
                pane.Height = pane.OccupiedHeight;
                pane.Width  = Width;
                Controls.Add(pane);
                _panes.Add(pane);
                pane.Anchor = AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right;
                lastPane    = pane;
            }

            if (lastPane != null)
            {
                lastPane.Anchor = AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right | AnchorStyles.Bottom;
                lastPane.Height = Height - (y - lastPane.Height);
            }

            DialogBase.AdjustContolProperties(this);
        }