コード例 #1
1
        public ErrorPanelLayout()
        {
            _header = new InternalSplitter();
            _contentDefault = new Panel();
            _contentCurrent = _contentDefault;

            Controls.Add(_header[PANEL_LEFT]);
            //Controls.Add(_header[PANEL_RIGHT]);
            Controls.Add(_contentDefault);

            //_header[PANEL_LEFT].BackColor = Color.Yellow;
            //_header[PANEL_RIGHT].BackColor = Color.Violet;
            //_contentDefault.BackColor = Color.Green;

            SizeChanged += new EventHandler(ErrorPanelLayout_SizeChanged);

            _header[PANEL_RIGHT].ControlAdded += new ControlEventHandler(ErrorPanelLayout_ControlAddedOrRemoved);

            _header[PANEL_RIGHT].ControlRemoved += new ControlEventHandler(ErrorPanelLayout_ControlAddedOrRemoved);

            Width = 200;
            Height = 200;

            return;
        }
コード例 #2
0
        public ErrorPanelLayout()
        {
            _header         = new InternalSplitter();
            _contentDefault = new Panel();
            _contentCurrent = _contentDefault;

            Controls.Add(_header[PANEL_LEFT]);
            //Controls.Add(_header[PANEL_RIGHT]);
            Controls.Add(_contentDefault);

            //_header[PANEL_LEFT].BackColor = Color.Yellow;
            //_header[PANEL_RIGHT].BackColor = Color.Violet;
            //_contentDefault.BackColor = Color.Green;

            SizeChanged += new EventHandler(ErrorPanelLayout_SizeChanged);

            _header[PANEL_RIGHT].ControlAdded += new ControlEventHandler(ErrorPanelLayout_ControlAddedOrRemoved);

            _header[PANEL_RIGHT].ControlRemoved += new ControlEventHandler(ErrorPanelLayout_ControlAddedOrRemoved);

            Width  = 200;
            Height = 200;

            return;
        }