Ejemplo n.º 1
0
        public SourceContainerDocument()
        {
            InitializeComponent();
            this.Closing        += OnClosing;
            TopLevel             = true;
            SourceEditorPanel    = new SourceEditorPanel();
            _findInSourcePanel   = new FindInSourcePanel();
            _objectExplorerPanel = new ObjectExplorerPanel();

            _findInSourcePanel.SourceEditorPanel         = SourceEditorPanel;
            SourceEditorPanel.FindInSourcePanel          = _findInSourcePanel;
            SourceEditorPanel.SourceContainerDocument    = this;
            SourceEditorPanel.MainSourceHolder           = true;
            _objectExplorerPanel.SourceContainerDocument = this;

            SourceEditorPanel.Show(dockPanel1);
            _findInSourcePanel.Show(dockPanel1, DockState.DockBottomAutoHide);
            _objectExplorerPanel.Show(dockPanel1, DockState.DockRight);
        }