дизайн

This commit is contained in:
klavirshik 2024-10-04 19:01:16 +02:00
parent 214441504f
commit c9a35daa3d
11 changed files with 103 additions and 18 deletions

Binary file not shown.

View File

@ -29,16 +29,23 @@
private void InitializeComponent()
{
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
this.button2 = new System.Windows.Forms.Button();
this.splitContainer2 = new System.Windows.Forms.SplitContainer();
this.listBox1 = new System.Windows.Forms.ListBox();
this.button1 = new System.Windows.Forms.Button();
this.button2 = new System.Windows.Forms.Button();
this.panel1 = new System.Windows.Forms.Panel();
this.panel2 = new System.Windows.Forms.Panel();
this.panel3 = new System.Windows.Forms.Panel();
this.panel4 = new System.Windows.Forms.Panel();
this.treeView1 = new System.Windows.Forms.TreeView();
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
this.splitContainer1.Panel1.SuspendLayout();
this.splitContainer1.Panel2.SuspendLayout();
this.splitContainer1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).BeginInit();
this.splitContainer2.Panel1.SuspendLayout();
this.splitContainer2.Panel2.SuspendLayout();
this.splitContainer2.SuspendLayout();
this.panel1.SuspendLayout();
this.panel3.SuspendLayout();
this.SuspendLayout();
@ -51,41 +58,70 @@
//
// splitContainer1.Panel1
//
this.splitContainer1.Panel1.Controls.Add(this.button2);
this.splitContainer1.Panel1.Controls.Add(this.button1);
this.splitContainer1.Panel1.Controls.Add(this.splitContainer2);
//
// splitContainer1.Panel2
//
this.splitContainer1.Panel2.Controls.Add(this.panel1);
this.splitContainer1.Panel2.Controls.Add(this.panel3);
this.splitContainer1.Size = new System.Drawing.Size(800, 580);
this.splitContainer1.SplitterDistance = 130;
this.splitContainer1.Size = new System.Drawing.Size(1082, 718);
this.splitContainer1.SplitterDistance = 223;
this.splitContainer1.TabIndex = 0;
//
// button2
// splitContainer2
//
this.button2.Location = new System.Drawing.Point(3, 475);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(124, 48);
this.button2.TabIndex = 1;
this.button2.Text = "button2";
this.button2.UseVisualStyleBackColor = true;
this.button2.Click += new System.EventHandler(this.button2_Click);
this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill;
this.splitContainer2.Location = new System.Drawing.Point(0, 0);
this.splitContainer2.Name = "splitContainer2";
this.splitContainer2.Orientation = System.Windows.Forms.Orientation.Horizontal;
//
// splitContainer2.Panel1
//
this.splitContainer2.Panel1.Controls.Add(this.listBox1);
//
// splitContainer2.Panel2
//
this.splitContainer2.Panel2.Controls.Add(this.treeView1);
this.splitContainer2.Panel2.Controls.Add(this.button1);
this.splitContainer2.Panel2.Controls.Add(this.button2);
this.splitContainer2.Panel2.Paint += new System.Windows.Forms.PaintEventHandler(this.splitContainer2_Panel2_Paint);
this.splitContainer2.Size = new System.Drawing.Size(223, 718);
this.splitContainer2.SplitterDistance = 195;
this.splitContainer2.TabIndex = 2;
//
// listBox1
//
this.listBox1.Dock = System.Windows.Forms.DockStyle.Fill;
this.listBox1.FormattingEnabled = true;
this.listBox1.Location = new System.Drawing.Point(0, 0);
this.listBox1.Name = "listBox1";
this.listBox1.Size = new System.Drawing.Size(223, 195);
this.listBox1.TabIndex = 0;
//
// button1
//
this.button1.Location = new System.Drawing.Point(3, 529);
this.button1.Location = new System.Drawing.Point(3, 411);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(124, 48);
this.button1.Size = new System.Drawing.Size(75, 48);
this.button1.TabIndex = 0;
this.button1.Text = "button1";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// button2
//
this.button2.Location = new System.Drawing.Point(84, 411);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(81, 48);
this.button2.TabIndex = 1;
this.button2.Text = "button2";
this.button2.UseVisualStyleBackColor = true;
this.button2.Click += new System.EventHandler(this.button2_Click);
//
// panel1
//
this.panel1.Controls.Add(this.panel2);
this.panel1.Location = new System.Drawing.Point(186, 24);
this.panel1.Location = new System.Drawing.Point(301, 157);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(458, 299);
this.panel1.TabIndex = 0;
@ -100,7 +136,7 @@
// panel3
//
this.panel3.Controls.Add(this.panel4);
this.panel3.Location = new System.Drawing.Point(22, 12);
this.panel3.Location = new System.Drawing.Point(75, 305);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(458, 299);
this.panel3.TabIndex = 1;
@ -112,12 +148,24 @@
this.panel4.Size = new System.Drawing.Size(388, 159);
this.panel4.TabIndex = 0;
//
// treeView1
//
this.treeView1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.treeView1.Location = new System.Drawing.Point(0, 0);
this.treeView1.Name = "treeView1";
this.treeView1.Size = new System.Drawing.Size(223, 405);
this.treeView1.TabIndex = 2;
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(800, 580);
this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
this.ClientSize = new System.Drawing.Size(1082, 718);
this.Controls.Add(this.splitContainer1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Name = "Form1";
this.Text = "Form1";
this.Resize += new System.EventHandler(this.tabControl1_SizeChanged);
@ -125,6 +173,10 @@
this.splitContainer1.Panel2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
this.splitContainer1.ResumeLayout(false);
this.splitContainer2.Panel1.ResumeLayout(false);
this.splitContainer2.Panel2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit();
this.splitContainer2.ResumeLayout(false);
this.panel1.ResumeLayout(false);
this.panel3.ResumeLayout(false);
this.ResumeLayout(false);
@ -140,6 +192,9 @@
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.Panel panel3;
private System.Windows.Forms.Panel panel4;
private System.Windows.Forms.SplitContainer splitContainer2;
private System.Windows.Forms.ListBox listBox1;
private System.Windows.Forms.TreeView treeView1;
}
}

View File

@ -73,6 +73,11 @@ namespace Remontor
MoveWindow(p1.MainWindowHandle, panel1.Bounds.X, panel1.Bounds.Y - 24, panel1.Bounds.Width, panel1.Bounds.Height, true);
MoveWindow(p.MainWindowHandle, panel3.Bounds.X, panel3.Bounds.Y - 24, panel3.Bounds.Width, panel3.Bounds.Height, true);
}
private void splitContainer2_Panel2_Paint(object sender, PaintEventArgs e)
{
}
}
}

25
Remontor/Remontor.sln Normal file
View File

@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.6.33723.286
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Remontor", "Remontor.csproj", "{8D64468B-F1F0-4FF1-938F-C167174C6F4C}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{8D64468B-F1F0-4FF1-938F-C167174C6F4C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8D64468B-F1F0-4FF1-938F-C167174C6F4C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8D64468B-F1F0-4FF1-938F-C167174C6F4C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8D64468B-F1F0-4FF1-938F-C167174C6F4C}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {C753AC5A-1C35-4765-8D37-DB83378EAB1E}
EndGlobalSection
EndGlobal

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.