public IWindow Add(string identifier, Control content, string caption)
        {
            var window = new StackedWindowControl(content, caption)
            {
                Dock = DockStyle.Fill
            };

            Add(identifier, window);
            return(window);
        }
        public void Add(string identifier, StackedWindowControl window)
        {
            window.Dock = DockStyle.Fill;
            windows.Add(identifier, window);

            while (layoutPanel.RowCount < windows.Count)
            {
                layoutPanel.RowCount++;
                layoutPanel.RowStyles.Add(new RowStyle(SizeType.Absolute));
            }

            layoutPanel.Controls.Add(window, 0, windows.Count - 1);

            ResizeCells();
        }
        public void Add(string identifier, StackedWindowControl window)
        {
            window.Dock = DockStyle.Fill;
            windows.Add(identifier, window);

            while (layoutPanel.RowCount < windows.Count)
            {
                layoutPanel.RowCount++;
                layoutPanel.RowStyles.Add(new RowStyle(SizeType.Absolute));
            }

            layoutPanel.Controls.Add(window, 0, windows.Count - 1);

            ResizeCells();
        }
 public IWindow Add(string identifier, Control content, string caption)
 {
     var window = new StackedWindowControl(content, caption) {Dock = DockStyle.Fill};
     Add(identifier, window);
     return window;
 }