Exemple #1
0
        private void InternalConstruct(DockManager dockManager, ContentWindow contentWindow, bool boundsSpecified, Rectangle bounds)
        {
            m_contentWindows = new ContentWindowCollection();

            FormBorderStyle = FormBorderStyle.SizableToolWindow;
            ShowInTaskbar   = false;
            if (boundsSpecified)
            {
                Bounds        = bounds;
                StartPosition = FormStartPosition.Manual;
            }
            else
            {
                StartPosition = FormStartPosition.WindowsDefaultLocation;
            }

            m_dummyControl        = new Control();
            m_dummyControl.Bounds = Rectangle.Empty;
            Controls.Add(m_dummyControl);

            m_dockManager = dockManager;
            Owner         = DockManager.FindForm();
            DockManager.AddFloatWindow(this);
            if (contentWindow != null)
            {
                contentWindow.FloatWindow = this;
            }
        }