예제 #1
0
        private void Initialize()
        {
            InitializeComponent();

            this.ContentPanel.Controls.Add(this.m_splitter);

            m_Empty = false;             //TODO: still needed?

            //here the 4 toolbar areas (ToolStripPanels of this ToolStripContainer)
            //are named. The names are hardcoded ids, don't change them, otherwise
            //loaded toolbars won't show up atm.
            TopToolStripPanel.Name    = "top";          //NON-NLS-1
            RightToolStripPanel.Name  = "right";        //NON-NLS-1
            BottomToolStripPanel.Name = "bottom";       //NON-NLS-1
            LeftToolStripPanel.Name   = "left";         //NON-NLS-1

            m_ToolbarContainers.Add(TopToolStripPanel);
            m_ToolbarContainers.Add(RightToolStripPanel);
            m_ToolbarContainers.Add(BottomToolStripPanel);
            m_ToolbarContainers.Add(LeftToolStripPanel);

            Dock = DockStyle.Fill;

            SetStyle(
                ControlStyles.DoubleBuffer
                | ControlStyles.UserPaint
                | ControlStyles.AllPaintingInWmPaint,
                true);

            SetStyle(
                ControlStyles.ResizeRedraw,
                false);

            UpdateStyles();

            //Settings.Default.PropertyChanged += OnSettingsPropertyChanged;

            Show();
            ContentPanel.Show();
            TopToolStripPanel.Show();
            RightToolStripPanel.Show();
        }