コード例 #1
0
ファイル: MainWindow.Designer.cs プロジェクト: Remurr/nDbg
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this._docker = new Crom.Controls.Docking.DockContainer();
            this.SuspendLayout();
            // 
            // _docker
            // 
            this._docker.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(118)))), ((int)(((byte)(118)))), ((int)(((byte)(118)))));
            this._docker.Dock = System.Windows.Forms.DockStyle.Fill;
            this._docker.Location = new System.Drawing.Point(0, 0);
            this._docker.Name = "_docker";
            this._docker.Size = new System.Drawing.Size(709, 644);
            this._docker.TabIndex = 0;
            // 
            // MainWindow
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(709, 644);
            this.Controls.Add(this._docker);
            this.Name = "MainWindow";
            this.Text = "Form1";
            this.ResumeLayout(false);

        }
コード例 #2
0
ファイル: DockStateSerializer.cs プロジェクト: Remurr/nDbg
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="container">container</param>
 public DockStateSerializer(DockContainer container)
 {
     _container     = container;
      _host          = new FormWrapper(container, 0, 0);
      string appName = Path.GetFileNameWithoutExtension(Application.ExecutablePath);
      _savePath      = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), appName);
      _savePath      = Path.Combine(_savePath, Resources.StateFileName);
 }
コード例 #3
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="container">container</param>
        public DockStateSerializer(DockContainer container)
        {
            _container = container;
            _host      = new FormWrapper(container, 0, 0);
            string appName = Path.GetFileNameWithoutExtension(Application.ExecutablePath);

            _savePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), appName);
            _savePath = Path.Combine(_savePath, Resources.StateFileName);
        }
コード例 #4
0
ファイル: DockTest.cs プロジェクト: EdiCarlos/MyPractices
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            this._docker = new Crom.Controls.Docking.DockContainer();
            this.menuStrip1 = new System.Windows.Forms.MenuStrip();
            this._menuFile = new System.Windows.Forms.ToolStripMenuItem();
            this._menuFileSave = new System.Windows.Forms.ToolStripMenuItem();
            this._menuFileLoad = new System.Windows.Forms.ToolStripMenuItem();
            this._menuFileS1 = new System.Windows.Forms.ToolStripSeparator();
            this._menuFileExit = new System.Windows.Forms.ToolStripMenuItem();
            this._menuWork = new System.Windows.Forms.ToolStripMenuItem();
            this._menuWorkInitialize = new System.Windows.Forms.ToolStripMenuItem();
            this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
            this.addSomeMenuHereToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this._menuHelp = new System.Windows.Forms.ToolStripMenuItem();
            this._menuHelpInfo = new System.Windows.Forms.ToolStripMenuItem();
            this.menuStrip1.SuspendLayout();
            this.contextMenuStrip1.SuspendLayout();
            this.SuspendLayout();
            // 
            // _docker
            // 
            this._docker.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(118)))), ((int)(((byte)(118)))), ((int)(((byte)(118)))));
            this._docker.Dock = System.Windows.Forms.DockStyle.Fill;
            this._docker.Location = new System.Drawing.Point(0, 24);
            this._docker.Name = "_docker";
            this._docker.Size = new System.Drawing.Size(292, 242);
            this._docker.TabIndex = 0;
            // 
            // menuStrip1
            // 
            this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this._menuFile,
            this._menuWork,
            this._menuHelp});
            this.menuStrip1.Location = new System.Drawing.Point(0, 0);
            this.menuStrip1.Name = "menuStrip1";
            this.menuStrip1.Size = new System.Drawing.Size(292, 24);
            this.menuStrip1.TabIndex = 1;
            this.menuStrip1.Text = "menuStrip1";
            // 
            // _menuFile
            // 
            this._menuFile.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this._menuFileSave,
            this._menuFileLoad,
            this._menuFileS1,
            this._menuFileExit});
            this._menuFile.Name = "_menuFile";
            this._menuFile.Size = new System.Drawing.Size(35, 20);
            this._menuFile.Text = "&File";
            // 
            // _menuFileSave
            // 
            this._menuFileSave.Name = "_menuFileSave";
            this._menuFileSave.Size = new System.Drawing.Size(109, 22);
            this._menuFileSave.Text = "&Save";
            this._menuFileSave.Click += new System.EventHandler(this.OnFileSaveClick);
            // 
            // _menuFileLoad
            // 
            this._menuFileLoad.Name = "_menuFileLoad";
            this._menuFileLoad.Size = new System.Drawing.Size(109, 22);
            this._menuFileLoad.Text = "Load";
            this._menuFileLoad.Click += new System.EventHandler(this.OnFileLoadClick);
            // 
            // _menuFileS1
            // 
            this._menuFileS1.Name = "_menuFileS1";
            this._menuFileS1.Size = new System.Drawing.Size(106, 6);
            // 
            // _menuFileExit
            // 
            this._menuFileExit.Name = "_menuFileExit";
            this._menuFileExit.Size = new System.Drawing.Size(109, 22);
            this._menuFileExit.Text = "E&xit";
            this._menuFileExit.Click += new System.EventHandler(this.OnFileExitClick);
            // 
            // _menuWork
            // 
            this._menuWork.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this._menuWorkInitialize});
            this._menuWork.Name = "_menuWork";
            this._menuWork.Size = new System.Drawing.Size(44, 20);
            this._menuWork.Text = "Work";
            // 
            // _menuWorkInitialize
            // 
            this._menuWorkInitialize.Name = "_menuWorkInitialize";
            this._menuWorkInitialize.Size = new System.Drawing.Size(152, 22);
            this._menuWorkInitialize.Text = "Initialize";
            this._menuWorkInitialize.Click += new System.EventHandler(this.OnWorkInitializeClick);
            // 
            // contextMenuStrip1
            // 
            this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.addSomeMenuHereToolStripMenuItem});
            this.contextMenuStrip1.Name = "contextMenuStrip1";
            this.contextMenuStrip1.Size = new System.Drawing.Size(187, 26);
            // 
            // addSomeMenuHereToolStripMenuItem
            // 
            this.addSomeMenuHereToolStripMenuItem.Name = "addSomeMenuHereToolStripMenuItem";
            this.addSomeMenuHereToolStripMenuItem.Size = new System.Drawing.Size(186, 22);
            this.addSomeMenuHereToolStripMenuItem.Text = "Add some menu here";
            // 
            // _menuHelp
            // 
            this._menuHelp.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this._menuHelpInfo});
            this._menuHelp.Name = "_menuHelp";
            this._menuHelp.Size = new System.Drawing.Size(40, 20);
            this._menuHelp.Text = "Help";
            // 
            // _menuHelpInfo
            // 
            this._menuHelpInfo.Name = "_menuHelpInfo";
            this._menuHelpInfo.Size = new System.Drawing.Size(152, 22);
            this._menuHelpInfo.Text = "Info";
            this._menuHelpInfo.Click += new System.EventHandler(this.OnHelpInfoClick);
            // 
            // DockTest
            // 
            this.ClientSize = new System.Drawing.Size(292, 266);
            this.Controls.Add(this._docker);
            this.Controls.Add(this.menuStrip1);
            this.MainMenuStrip = this.menuStrip1;
            this.Name = "DockTest";
            this.Text = "Test form";
            this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
            this.menuStrip1.ResumeLayout(false);
            this.menuStrip1.PerformLayout();
            this.contextMenuStrip1.ResumeLayout(false);
            this.ResumeLayout(false);
            this.PerformLayout();

        }
コード例 #5
0
        DockableFormInfo CreateFormAndGuid(DockContainer dock, Control ctl, string configguidref)
        {
            Guid gu = GetOrCreateGuid(configguidref);
            Form frm;

            if (formguids.ContainsKey(gu) && !formguids[gu].IsDisposed)
            {
                frm = formguids[gu];
            }
            else
            {
                frm = CreateFormFromControl(ctl);
                frm.AutoScroll = true;
                formguids[gu] = frm;
            }

            frm.FormBorderStyle = FormBorderStyle.SizableToolWindow;
            frm.TopLevel = false;

            DockableFormInfo answer = dock.Add(frm, Crom.Controls.Docking.zAllowedDock.All, gu);

            answer.ShowCloseButton = false;

            answer.ShowContextMenuButton = false;

            return answer;
        }
コード例 #6
0
ファイル: MainMDIForm.cs プロジェクト: Megamatt01/peggle-edit
		private void InitDockContainer()
		{
			mDockContainer = new DockContainer();

			mDockContainer.TitleBarGradientColor1 = Color.FromArgb(225, 237, 252);
			mDockContainer.TitleBarGradientColor2 = Color.FromArgb(191, 219, 255);
			mDockContainer.TitleBarGradientSelectedColor1 = Color.FromArgb(225, 237, 255);
			mDockContainer.TitleBarGradientSelectedColor2 = Color.FromArgb(150, 200, 255);

			mDockContainer.Dock = DockStyle.Fill;

			mDockContainer.FormClosed += new EventHandler<FormEventArgs>(mDockContainer_FormClosed);
		}
コード例 #7
0
        DockableFormInfo CreateFormAndGuid(DockContainer dock, Control ctl, string configguidref)
        {
            Guid gu = GetOrCreateGuid(configguidref);
            Form frm;
            if (formguids.ContainsKey(gu))
            {
                frm = formguids[gu];
            }
            else
            {
                frm = CreateFormFromControl(ctl);
                frm.AutoScroll = true;
                formguids[gu] = frm;
            }

            return dock.Add(frm, Crom.Controls.Docking.zAllowedDock.All, gu);
        }