Inheritance: NekoKun.UI.LynnDockContent
示例#1
0
        private Workbench()
        {
            toolbox = new ToolboxDockContent();

            this.Icon = NekoKun.UI.Properties.Resources.MainIcon;

            DockPanel.Dock = DockStyle.Fill;

            this.IsMdiContainer = true;
            DockPanel.DocumentStyle = DocumentStyle.DockingWindow;
            DockPanel.ShowDocumentIcon = true;
            if (UI.UIManager.Enabled)
            {
                DockPanel.Skin = new UI.DockingThemeOcean();
                DockPanel.BackColor = Color.FromArgb(191, 219, 255);
                DockPanel.DockBackColor = Color.FromArgb(191, 219, 255);
            }
            else
            {
                DockPanel.SkinStyle = WeifenLuo.WinFormsUI.Docking.Skins.Style.VisualStudio2005;
            }

            this.Controls.Add(DockPanel);
            InitializeComponent();

            this.Load += new EventHandler(Workbench_Load);
            this.FormClosing += new FormClosingEventHandler(Workbench_FormClosing);
            this.FormClosed += new FormClosedEventHandler(Workbench_FormClosed);
            this.DockPanel.ActiveDocumentChanged += new EventHandler(DockPanel_ActiveDocumentChanged);

            FileManager.PendingChangesStatusChanged += new EventHandler(FileManager_PendingChangesStatusChanged);
        }
示例#2
0
        private Workbench()
        {
            toolbox = new ToolboxDockContent();

            this.Icon = NekoKun.UI.Properties.Resources.MainIcon;

            DockPanel.Dock = DockStyle.Fill;

            this.IsMdiContainer        = true;
            DockPanel.DocumentStyle    = DocumentStyle.DockingWindow;
            DockPanel.ShowDocumentIcon = true;
            if (UI.UIManager.Enabled)
            {
                DockPanel.Skin          = new UI.DockingThemeOcean();
                DockPanel.BackColor     = Color.FromArgb(191, 219, 255);
                DockPanel.DockBackColor = Color.FromArgb(191, 219, 255);
            }
            else
            {
                DockPanel.SkinStyle = WeifenLuo.WinFormsUI.Docking.Skins.Style.VisualStudio2005;
            }

            this.Controls.Add(DockPanel);
            InitializeComponent();

            this.Load        += new EventHandler(Workbench_Load);
            this.FormClosing += new FormClosingEventHandler(Workbench_FormClosing);
            this.FormClosed  += new FormClosedEventHandler(Workbench_FormClosed);
            this.DockPanel.ActiveDocumentChanged += new EventHandler(DockPanel_ActiveDocumentChanged);

            FileManager.PendingChangesStatusChanged += new EventHandler(FileManager_PendingChangesStatusChanged);
        }