From: <an...@us...> - 2007-03-10 10:54:03
|
Revision: 173 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=173&view=rev Author: and-81 Date: 2007-03-10 02:53:59 -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 08:27:43 UTC (rev 172) +++ trunk/plugins/ComSkipLauncher/ExternalProgram.Designer.cs 2007-03-10 10:53:59 UTC (rev 173) @@ -38,6 +38,10 @@ this.openFileDialog = new System.Windows.Forms.OpenFileDialog(); this.buttonParamQuestion = new System.Windows.Forms.Button(); this.buttonTest = new System.Windows.Forms.Button(); + this.labelFile = new System.Windows.Forms.Label(); + this.textBoxTestFile = new System.Windows.Forms.TextBox(); + this.groupBoxTest = new System.Windows.Forms.GroupBox(); + this.groupBoxTest.SuspendLayout(); this.SuspendLayout(); // // textBoxProgram @@ -74,7 +78,7 @@ // buttonOK // this.buttonOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.buttonOK.Location = new System.Drawing.Point(208, 96); + this.buttonOK.Location = new System.Drawing.Point(208, 168); this.buttonOK.Name = "buttonOK"; this.buttonOK.Size = new System.Drawing.Size(56, 24); this.buttonOK.TabIndex = 7; @@ -86,7 +90,7 @@ // this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; - this.buttonCancel.Location = new System.Drawing.Point(272, 96); + this.buttonCancel.Location = new System.Drawing.Point(272, 168); this.buttonCancel.Name = "buttonCancel"; this.buttonCancel.Size = new System.Drawing.Size(56, 24); this.buttonCancel.TabIndex = 8; @@ -132,8 +136,8 @@ // // buttonTest // - this.buttonTest.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); - this.buttonTest.Location = new System.Drawing.Point(8, 96); + this.buttonTest.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.buttonTest.Location = new System.Drawing.Point(256, 32); this.buttonTest.Name = "buttonTest"; this.buttonTest.Size = new System.Drawing.Size(56, 24); this.buttonTest.TabIndex = 6; @@ -141,12 +145,46 @@ this.buttonTest.UseVisualStyleBackColor = true; this.buttonTest.Click += new System.EventHandler(this.buttonTest_Click); // + // labelFile + // + this.labelFile.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | 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.TabIndex = 9; + this.labelFile.Text = "File:"; + this.labelFile.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // textBoxTestFile + // + this.textBoxTestFile.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | 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.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.textBoxTestFile); + this.groupBoxTest.Controls.Add(this.buttonTest); + this.groupBoxTest.Controls.Add(this.labelFile); + this.groupBoxTest.Location = new System.Drawing.Point(8, 96); + this.groupBoxTest.Name = "groupBoxTest"; + this.groupBoxTest.Size = new System.Drawing.Size(320, 64); + this.groupBoxTest.TabIndex = 11; + this.groupBoxTest.TabStop = false; + this.groupBoxTest.Text = "Test"; + // // ExternalProgram // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(336, 128); - this.Controls.Add(this.buttonTest); + this.ClientSize = new System.Drawing.Size(336, 200); + this.Controls.Add(this.groupBoxTest); this.Controls.Add(this.buttonParamQuestion); this.Controls.Add(this.labelParameters); this.Controls.Add(this.textBoxParameters); @@ -157,12 +195,14 @@ this.Controls.Add(this.textBoxProgram); this.MaximizeBox = false; this.MinimizeBox = false; - this.MinimumSize = new System.Drawing.Size(352, 164); + this.MinimumSize = new System.Drawing.Size(352, 236); this.Name = "ExternalProgram"; this.ShowIcon = false; this.ShowInTaskbar = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.Text = "ComSkip Program Details"; + this.groupBoxTest.ResumeLayout(false); + this.groupBoxTest.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); @@ -180,5 +220,8 @@ private System.Windows.Forms.OpenFileDialog openFileDialog; private System.Windows.Forms.Button buttonParamQuestion; private System.Windows.Forms.Button buttonTest; + private System.Windows.Forms.Label labelFile; + private System.Windows.Forms.TextBox textBoxTestFile; + private System.Windows.Forms.GroupBox groupBoxTest; } } \ No newline at end of file Modified: trunk/plugins/ComSkipLauncher/ExternalProgram.cs =================================================================== --- trunk/plugins/ComSkipLauncher/ExternalProgram.cs 2007-03-10 08:27:43 UTC (rev 172) +++ trunk/plugins/ComSkipLauncher/ExternalProgram.cs 2007-03-10 10:53:59 UTC (rev 173) @@ -92,12 +92,11 @@ try { - string parameters = ComSkipLauncher.ProcessParameters(textBoxParameters.Text, "test.file"); + string parameters = ComSkipLauncher.ProcessParameters(textBoxParameters.Text, textBoxTestFile.Text); Process process = new Process(); process.StartInfo.Arguments = parameters; process.StartInfo.FileName = textBoxProgram.Text; - process.StartInfo.WindowStyle = ProcessWindowStyle.Hidden; process.StartInfo.WorkingDirectory = Path.GetDirectoryName(textBoxProgram.Text); process.Start(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |