Beispiel #1
0
        public DockForm()
        {
            InitializeComponent();

            SuspendLayout();

            dock = new WeifenLuo.WinFormsUI.Docking.DockPanel();

            dock.Dock = DockStyle.Fill;

            dock.DocumentStyle = DocumentStyle.DockingWindow;

            dock.SupportDeeplyNestedContent = false;

            //dock.AllowEndUserDocking = false;

            //dock.AllowEndUserNestedDocking = false;

            dock.Theme = new VS2013BlueTheme();

            this.Controls.Add(dock);

            scr = new ScriptControl.ScriptControl(this);

            scr.Dock = DockStyle.Fill;

            ResumeLayout();

            LoadTW("Explorer");
            LoadTW("Output");
            LoadTW("Folders");
            LoadTW("Recent");

            LoadDocumentWindow();
        }
Beispiel #2
0
        public SyntaxTreeViewHost(ScriptControl.ScriptControl scr = null)
        {
            this.BackColor = System.Drawing.Color.White;

            dv = new SyntaxTreeViewer();

            this.BackColorTransparent = true;

            base.Child = dv;

            if (scr != null)
            {
                scr.handler += Scr_handler;
            }
        }