перенос контролов элемента

This commit is contained in:
kotcheshir73 2021-04-01 21:38:23 +04:00
parent 2c64975fb1
commit ed483159e8
2 changed files with 95 additions and 105 deletions

View File

@ -24,111 +24,8 @@ namespace DesktopTools.Controls
/// </summary>
private void InitializeComponent()
{
this.toolStripActions = new System.Windows.Forms.ToolStrip();
this.toolStripButtonSave = new System.Windows.Forms.ToolStripButton();
this.toolStripButtonReload = new System.Windows.Forms.ToolStripButton();
this.toolStripButtonClose = new System.Windows.Forms.ToolStripButton();
this.panelContainer = new System.Windows.Forms.Panel();
this.tabControl = new System.Windows.Forms.TabControl();
this.tabPageMain = new System.Windows.Forms.TabPage();
this.tabControl.SuspendLayout();
this.toolStripActions.SuspendLayout();
this.SuspendLayout();
//
// toolStripActions
//
this.toolStripActions.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.toolStripButtonSave,
this.toolStripButtonReload,
this.toolStripButtonClose});
this.toolStripActions.Location = new System.Drawing.Point(0, 0);
this.toolStripActions.Name = "toolStripActions";
this.toolStripActions.Size = new System.Drawing.Size(594, 25);
this.toolStripActions.TabIndex = 0;
this.toolStripActions.Text = "toolStrip1";
//
// toolStripButtonSave
//
this.toolStripButtonSave.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.toolStripButtonSave.Image = global::DesktopTools.Properties.Resources.Save;
this.toolStripButtonSave.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripButtonSave.Name = "toolStripButtonSave";
this.toolStripButtonSave.Size = new System.Drawing.Size(23, 22);
this.toolStripButtonSave.Text = "Сохранить";
//
// toolStripButtonReload
//
this.toolStripButtonReload.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.toolStripButtonReload.Image = global::DesktopTools.Properties.Resources.Reload;
this.toolStripButtonReload.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripButtonReload.Name = "toolStripButtonReload";
this.toolStripButtonReload.Size = new System.Drawing.Size(23, 22);
this.toolStripButtonReload.Text = "Обновить";
//
// toolStripButtonClose
//
this.toolStripButtonClose.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
this.toolStripButtonClose.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.toolStripButtonClose.Image = global::DesktopTools.Properties.Resources.Close;
this.toolStripButtonClose.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripButtonClose.Name = "toolStripButtonClose";
this.toolStripButtonClose.Size = new System.Drawing.Size(23, 22);
this.toolStripButtonClose.Text = "Закрыть";
//
// panelContainer
//
this.panelContainer.AutoScroll = true;
this.panelContainer.Dock = System.Windows.Forms.DockStyle.Fill;
this.panelContainer.Location = new System.Drawing.Point(0, 25);
this.panelContainer.Name = "panelContainer";
this.panelContainer.Size = new System.Drawing.Size(594, 485);
this.panelContainer.TabIndex = 1;
//
// tabControl
//
this.tabControl.Controls.Add(this.tabPageMain);
this.tabControl.Dock = System.Windows.Forms.DockStyle.Fill;
this.tabControl.Location = new System.Drawing.Point(218, 141);
this.tabControl.Name = "tabControl";
this.tabControl.SelectedIndex = 0;
this.tabControl.Size = new System.Drawing.Size(130, 127);
this.tabControl.TabIndex = 0;
//
// tabPageMain
//
this.tabPageMain.Location = new System.Drawing.Point(4, 24);
this.tabPageMain.Name = "tabPageMain";
this.tabPageMain.Padding = new System.Windows.Forms.Padding(3);
this.tabPageMain.Size = new System.Drawing.Size(122, 99);
this.tabPageMain.TabIndex = 0;
this.tabPageMain.Text = "Свойства элемента";
this.tabPageMain.UseVisualStyleBackColor = true;
//
// GenericControlEntityElement
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.tabControl);
this.Controls.Add(this.panelContainer);
this.Controls.Add(this.toolStripActions);
this.Name = "GenericControlEntityElement";
this.Size = new System.Drawing.Size(594, 510);
this.toolStripActions.ResumeLayout(false);
this.toolStripActions.PerformLayout();
this.tabControl.ResumeLayout(false);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.ToolStrip toolStripActions;
private System.Windows.Forms.ToolStripButton toolStripButtonSave;
private System.Windows.Forms.ToolStripButton toolStripButtonReload;
private System.Windows.Forms.ToolStripButton toolStripButtonClose;
private System.Windows.Forms.Panel panelContainer;
private System.Windows.Forms.TabControl tabControl;
private System.Windows.Forms.TabPage tabPageMain;
}
}

View File

@ -29,18 +29,111 @@ namespace DesktopTools.Controls
/// </summary>
private void InitializeComponent()
{
this.toolStripActions = new System.Windows.Forms.ToolStrip();
this.toolStripButtonSave = new System.Windows.Forms.ToolStripButton();
this.toolStripButtonReload = new System.Windows.Forms.ToolStripButton();
this.toolStripButtonClose = new System.Windows.Forms.ToolStripButton();
this.panelContainer = new System.Windows.Forms.Panel();
this.tabControl = new System.Windows.Forms.TabControl();
this.tabPageMain = new System.Windows.Forms.TabPage();
this.tabControl.SuspendLayout();
this.toolStripActions.SuspendLayout();
this.SuspendLayout();
//
// toolStripActions
//
this.toolStripActions.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.toolStripButtonSave,
this.toolStripButtonReload,
this.toolStripButtonClose});
this.toolStripActions.Location = new System.Drawing.Point(0, 0);
this.toolStripActions.Name = "toolStripActions";
this.toolStripActions.Size = new System.Drawing.Size(594, 25);
this.toolStripActions.TabIndex = 0;
this.toolStripActions.Text = "toolStrip1";
//
// toolStripButtonSave
//
this.toolStripButtonSave.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.toolStripButtonSave.Image = global::DesktopTools.Properties.Resources.Save;
this.toolStripButtonSave.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripButtonSave.Name = "toolStripButtonSave";
this.toolStripButtonSave.Size = new System.Drawing.Size(23, 22);
this.toolStripButtonSave.Text = "Сохранить";
//
// toolStripButtonReload
//
this.toolStripButtonReload.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.toolStripButtonReload.Image = global::DesktopTools.Properties.Resources.Reload;
this.toolStripButtonReload.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripButtonReload.Name = "toolStripButtonReload";
this.toolStripButtonReload.Size = new System.Drawing.Size(23, 22);
this.toolStripButtonReload.Text = "Обновить";
//
// toolStripButtonClose
//
this.toolStripButtonClose.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
this.toolStripButtonClose.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.toolStripButtonClose.Image = global::DesktopTools.Properties.Resources.Close;
this.toolStripButtonClose.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripButtonClose.Name = "toolStripButtonClose";
this.toolStripButtonClose.Size = new System.Drawing.Size(23, 22);
this.toolStripButtonClose.Text = "Закрыть";
//
// panelContainer
//
this.panelContainer.AutoScroll = true;
this.panelContainer.Dock = System.Windows.Forms.DockStyle.Fill;
this.panelContainer.Location = new System.Drawing.Point(0, 25);
this.panelContainer.Name = "panelContainer";
this.panelContainer.Size = new System.Drawing.Size(594, 485);
this.panelContainer.TabIndex = 1;
//
// tabControl
//
this.tabControl.Controls.Add(this.tabPageMain);
this.tabControl.Dock = System.Windows.Forms.DockStyle.Fill;
this.tabControl.Location = new System.Drawing.Point(218, 141);
this.tabControl.Name = "tabControl";
this.tabControl.SelectedIndex = 0;
this.tabControl.Size = new System.Drawing.Size(130, 127);
this.tabControl.TabIndex = 0;
//
// tabPageMain
//
this.tabPageMain.Location = new System.Drawing.Point(4, 24);
this.tabPageMain.Name = "tabPageMain";
this.tabPageMain.Padding = new System.Windows.Forms.Padding(3);
this.tabPageMain.Size = new System.Drawing.Size(122, 99);
this.tabPageMain.TabIndex = 0;
this.tabPageMain.Text = "Свойства элемента";
this.tabPageMain.UseVisualStyleBackColor = true;
//
// AbstractControlViewEntityElement
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.tabControl);
this.Controls.Add(this.panelContainer);
this.Controls.Add(this.toolStripActions);
this.Name = "AbstractControlViewEntityElement";
this.Size = new System.Drawing.Size(695, 578);
this.Size = new System.Drawing.Size(594, 510);
this.toolStripActions.ResumeLayout(false);
this.toolStripActions.PerformLayout();
this.tabControl.ResumeLayout(false);
this.ResumeLayout(false);
this.PerformLayout();
this.SuspendLayout();
}
#endregion
protected System.Windows.Forms.ToolStrip toolStripActions;
protected System.Windows.Forms.ToolStripButton toolStripButtonSave;
protected System.Windows.Forms.ToolStripButton toolStripButtonReload;
protected System.Windows.Forms.ToolStripButton toolStripButtonClose;
protected System.Windows.Forms.Panel panelContainer;
protected System.Windows.Forms.TabControl tabControl;
protected System.Windows.Forms.TabPage tabPageMain;
}
}