From: <an...@us...> - 2007-03-10 12:01:14
|
Revision: 174 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=174&view=rev Author: and-81 Date: 2007-03-10 04:01:08 -0800 (Sat, 10 Mar 2007) Log Message: ----------- Modified Paths: -------------- trunk/plugins/ComSkipLauncher/ExternalProgram.Designer.cs trunk/plugins/ComSkipLauncher/ExternalProgram.cs Modified: trunk/plugins/ComSkipLauncher/ExternalProgram.Designer.cs =================================================================== --- trunk/plugins/ComSkipLauncher/ExternalProgram.Designer.cs 2007-03-10 10:53:59 UTC (rev 173) +++ trunk/plugins/ComSkipLauncher/ExternalProgram.Designer.cs 2007-03-10 12:01:08 UTC (rev 174) @@ -41,6 +41,7 @@ this.labelFile = new System.Windows.Forms.Label(); this.textBoxTestFile = new System.Windows.Forms.TextBox(); this.groupBoxTest = new System.Windows.Forms.GroupBox(); + this.buttonFindTestFile = new System.Windows.Forms.Button(); this.groupBoxTest.SuspendLayout(); this.SuspendLayout(); // @@ -151,7 +152,7 @@ | System.Windows.Forms.AnchorStyles.Right))); this.labelFile.Location = new System.Drawing.Point(8, 16); this.labelFile.Name = "labelFile"; - this.labelFile.Size = new System.Drawing.Size(240, 16); + this.labelFile.Size = new System.Drawing.Size(208, 16); this.labelFile.TabIndex = 9; this.labelFile.Text = "File:"; this.labelFile.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; @@ -162,13 +163,14 @@ | System.Windows.Forms.AnchorStyles.Right))); this.textBoxTestFile.Location = new System.Drawing.Point(8, 32); this.textBoxTestFile.Name = "textBoxTestFile"; - this.textBoxTestFile.Size = new System.Drawing.Size(240, 20); + this.textBoxTestFile.Size = new System.Drawing.Size(208, 20); this.textBoxTestFile.TabIndex = 10; // // groupBoxTest // this.groupBoxTest.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); + this.groupBoxTest.Controls.Add(this.buttonFindTestFile); this.groupBoxTest.Controls.Add(this.textBoxTestFile); this.groupBoxTest.Controls.Add(this.buttonTest); this.groupBoxTest.Controls.Add(this.labelFile); @@ -179,6 +181,17 @@ this.groupBoxTest.TabStop = false; this.groupBoxTest.Text = "Test"; // + // buttonFindTestFile + // + this.buttonFindTestFile.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.buttonFindTestFile.Location = new System.Drawing.Point(224, 32); + this.buttonFindTestFile.Name = "buttonFindTestFile"; + this.buttonFindTestFile.Size = new System.Drawing.Size(24, 20); + this.buttonFindTestFile.TabIndex = 11; + this.buttonFindTestFile.Text = "..."; + this.buttonFindTestFile.UseVisualStyleBackColor = true; + this.buttonFindTestFile.Click += new System.EventHandler(this.buttonFindTestFile_Click); + // // ExternalProgram // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); @@ -223,5 +236,6 @@ private System.Windows.Forms.Label labelFile; private System.Windows.Forms.TextBox textBoxTestFile; private System.Windows.Forms.GroupBox groupBoxTest; + private System.Windows.Forms.Button buttonFindTestFile; } } \ No newline at end of file Modified: trunk/plugins/ComSkipLauncher/ExternalProgram.cs =================================================================== --- trunk/plugins/ComSkipLauncher/ExternalProgram.cs 2007-03-10 10:53:59 UTC (rev 173) +++ trunk/plugins/ComSkipLauncher/ExternalProgram.cs 2007-03-10 12:01:08 UTC (rev 174) @@ -55,6 +55,7 @@ private void buttonProgam_Click(object sender, EventArgs e) { + openFileDialog.Title = "Select Program To Execute"; if (openFileDialog.ShowDialog(this) == DialogResult.OK) textBoxProgram.Text = openFileDialog.FileName; } @@ -107,6 +108,13 @@ } } + private void buttonFindTestFile_Click(object sender, EventArgs e) + { + openFileDialog.Title = "Select Test File"; + if (openFileDialog.ShowDialog(this) == DialogResult.OK) + textBoxTestFile.Text = openFileDialog.FileName; + } + } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |