From 7d63936dd4f69a46c88f641229640fb4d9195468 Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期四, 18 七月 2024 15:16:12 +0800 Subject: [PATCH] 修改界面操作 --- SimuTools/FrmMain.Designer.cs | 85 ++++++++++++++++++++++++++++-------------- 1 files changed, 56 insertions(+), 29 deletions(-) diff --git a/SimuTools/FrmMain.Designer.cs b/SimuTools/FrmMain.Designer.cs index 953b7bd..c342cf3 100644 --- a/SimuTools/FrmMain.Designer.cs +++ b/SimuTools/FrmMain.Designer.cs @@ -37,8 +37,10 @@ this.txtFlowPath = new System.Windows.Forms.TextBox(); this.lblFlow = new System.Windows.Forms.Label(); this.btnFlowPath = new System.Windows.Forms.Button(); - this.tabLogs = new System.Windows.Forms.ListBox(); this.btnRun = new System.Windows.Forms.Button(); + this.txtOutPath = new System.Windows.Forms.TextBox(); + this.lblOut = new System.Windows.Forms.Label(); + this.btnOutPath = new System.Windows.Forms.Button(); this.SuspendLayout(); // // btnTerrainPath @@ -46,9 +48,9 @@ this.btnTerrainPath.Font = new System.Drawing.Font("瀹嬩綋", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.btnTerrainPath.Location = new System.Drawing.Point(607, 27); this.btnTerrainPath.Name = "btnTerrainPath"; - this.btnTerrainPath.Size = new System.Drawing.Size(90, 26); + this.btnTerrainPath.Size = new System.Drawing.Size(130, 26); this.btnTerrainPath.TabIndex = 47; - this.btnTerrainPath.Text = "閫夋嫨鍦板舰"; + this.btnTerrainPath.Text = "閫夋嫨鍦板舰鏂囦欢"; this.btnTerrainPath.UseVisualStyleBackColor = true; this.btnTerrainPath.Click += new System.EventHandler(this.btnTerrainPath_Click); // @@ -58,7 +60,7 @@ this.lblTerrain.Font = new System.Drawing.Font("瀹嬩綋", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.lblTerrain.Location = new System.Drawing.Point(24, 32); this.lblTerrain.Name = "lblTerrain"; - this.lblTerrain.Size = new System.Drawing.Size(80, 16); + this.lblTerrain.Size = new System.Drawing.Size(79, 16); this.lblTerrain.TabIndex = 48; this.lblTerrain.Text = "鍦板舰鏁版嵁:"; // @@ -88,7 +90,7 @@ this.lblWater.Font = new System.Drawing.Font("瀹嬩綋", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.lblWater.Location = new System.Drawing.Point(24, 81); this.lblWater.Name = "lblWater"; - this.lblWater.Size = new System.Drawing.Size(80, 16); + this.lblWater.Size = new System.Drawing.Size(79, 16); this.lblWater.TabIndex = 51; this.lblWater.Text = "姘撮潰鏁版嵁:"; // @@ -97,16 +99,16 @@ this.btnWaterPath.Font = new System.Drawing.Font("瀹嬩綋", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.btnWaterPath.Location = new System.Drawing.Point(607, 76); this.btnWaterPath.Name = "btnWaterPath"; - this.btnWaterPath.Size = new System.Drawing.Size(90, 26); + this.btnWaterPath.Size = new System.Drawing.Size(130, 26); this.btnWaterPath.TabIndex = 50; - this.btnWaterPath.Text = "閫夋嫨姘撮潰"; + this.btnWaterPath.Text = "閫夋嫨姘撮潰鐩綍"; this.btnWaterPath.UseVisualStyleBackColor = true; this.btnWaterPath.Click += new System.EventHandler(this.btnWaterPath_Click); // // txtFlowPath // this.txtFlowPath.Font = new System.Drawing.Font("瀹嬩綋", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.txtFlowPath.Location = new System.Drawing.Point(109, 125); + this.txtFlowPath.Location = new System.Drawing.Point(109, 126); this.txtFlowPath.MaxLength = 2000; this.txtFlowPath.Name = "txtFlowPath"; this.txtFlowPath.Size = new System.Drawing.Size(482, 26); @@ -117,53 +119,75 @@ // this.lblFlow.AutoSize = true; this.lblFlow.Font = new System.Drawing.Font("瀹嬩綋", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.lblFlow.Location = new System.Drawing.Point(24, 130); + this.lblFlow.Location = new System.Drawing.Point(24, 131); this.lblFlow.Name = "lblFlow"; - this.lblFlow.Size = new System.Drawing.Size(80, 16); + this.lblFlow.Size = new System.Drawing.Size(79, 16); this.lblFlow.TabIndex = 54; this.lblFlow.Text = "娴侀�熸祦鍚�:"; // // btnFlowPath // this.btnFlowPath.Font = new System.Drawing.Font("瀹嬩綋", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnFlowPath.Location = new System.Drawing.Point(607, 125); + this.btnFlowPath.Location = new System.Drawing.Point(607, 126); this.btnFlowPath.Name = "btnFlowPath"; - this.btnFlowPath.Size = new System.Drawing.Size(90, 26); + this.btnFlowPath.Size = new System.Drawing.Size(130, 26); this.btnFlowPath.TabIndex = 53; - this.btnFlowPath.Text = "閫夋嫨姘撮潰"; + this.btnFlowPath.Text = "閫夋嫨娴侀�熺洰褰�"; this.btnFlowPath.UseVisualStyleBackColor = true; this.btnFlowPath.Click += new System.EventHandler(this.btnFlowPath_Click); - // - // tabLogs - // - this.tabLogs.Font = new System.Drawing.Font("瀹嬩綋", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.tabLogs.FormattingEnabled = true; - this.tabLogs.ItemHeight = 16; - this.tabLogs.Location = new System.Drawing.Point(27, 176); - this.tabLogs.Name = "tabLogs"; - this.tabLogs.SelectionMode = System.Windows.Forms.SelectionMode.MultiSimple; - this.tabLogs.Size = new System.Drawing.Size(670, 340); - this.tabLogs.TabIndex = 56; // // btnRun // this.btnRun.Font = new System.Drawing.Font("瀹嬩綋", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.btnRun.ForeColor = System.Drawing.SystemColors.Highlight; - this.btnRun.Location = new System.Drawing.Point(27, 540); + this.btnRun.Location = new System.Drawing.Point(27, 229); this.btnRun.Name = "btnRun"; - this.btnRun.Size = new System.Drawing.Size(670, 26); + this.btnRun.Size = new System.Drawing.Size(710, 26); this.btnRun.TabIndex = 57; this.btnRun.Text = "杩� 琛�"; this.btnRun.UseVisualStyleBackColor = true; this.btnRun.Click += new System.EventHandler(this.btnRun_Click); // + // txtOutPath + // + this.txtOutPath.Font = new System.Drawing.Font("瀹嬩綋", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.txtOutPath.Location = new System.Drawing.Point(109, 178); + this.txtOutPath.MaxLength = 2000; + this.txtOutPath.Name = "txtOutPath"; + this.txtOutPath.Size = new System.Drawing.Size(482, 26); + this.txtOutPath.TabIndex = 60; + this.txtOutPath.Text = "D:\\simu\\out"; + // + // lblOut + // + this.lblOut.AutoSize = true; + this.lblOut.Font = new System.Drawing.Font("瀹嬩綋", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.lblOut.Location = new System.Drawing.Point(24, 183); + this.lblOut.Name = "lblOut"; + this.lblOut.Size = new System.Drawing.Size(79, 16); + this.lblOut.TabIndex = 59; + this.lblOut.Text = "杈撳嚭鐩綍:"; + // + // btnOutPath + // + this.btnOutPath.Font = new System.Drawing.Font("瀹嬩綋", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.btnOutPath.Location = new System.Drawing.Point(607, 178); + this.btnOutPath.Name = "btnOutPath"; + this.btnOutPath.Size = new System.Drawing.Size(130, 26); + this.btnOutPath.TabIndex = 58; + this.btnOutPath.Text = "閫夋嫨杈撳嚭鐩綍"; + this.btnOutPath.UseVisualStyleBackColor = true; + this.btnOutPath.Click += new System.EventHandler(this.btnOutPath_Click); + // // FrmMain // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(735, 594); + this.ClientSize = new System.Drawing.Size(751, 280); + this.Controls.Add(this.txtOutPath); + this.Controls.Add(this.lblOut); + this.Controls.Add(this.btnOutPath); this.Controls.Add(this.btnRun); - this.Controls.Add(this.tabLogs); this.Controls.Add(this.txtFlowPath); this.Controls.Add(this.lblFlow); this.Controls.Add(this.btnFlowPath); @@ -176,6 +200,7 @@ this.Name = "FrmMain"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "鍐呮稘浠跨湡宸ュ叿"; + this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmMain_FormClosing); this.Load += new System.EventHandler(this.FrmMain_Load); this.ResumeLayout(false); this.PerformLayout(); @@ -193,8 +218,10 @@ private System.Windows.Forms.TextBox txtFlowPath; private System.Windows.Forms.Label lblFlow; private System.Windows.Forms.Button btnFlowPath; - private System.Windows.Forms.ListBox tabLogs; private System.Windows.Forms.Button btnRun; + private System.Windows.Forms.TextBox txtOutPath; + private System.Windows.Forms.Label lblOut; + private System.Windows.Forms.Button btnOutPath; } } -- Gitblit v1.9.3