Revision: 444
http://acmcontester.svn.sourceforge.net/acmcontester/?rev=444&view=rev
Author: brus07
Date: 2008-12-11 10:10:49 +0000 (Thu, 11 Dec 2008)
Log Message:
-----------
Added new ComboBox for select language.
Modified Paths:
--------------
ACMServer/trunk/ACMServer/Plugins/TesterPlugins/SubmitterGUIPlugin/SubmitterGUIUserControl.Designer.cs
ACMServer/trunk/ACMServer/Plugins/TesterPlugins/SubmitterGUIPlugin/SubmitterGUIUserControl.cs
Modified: ACMServer/trunk/ACMServer/Plugins/TesterPlugins/SubmitterGUIPlugin/SubmitterGUIUserControl.Designer.cs
===================================================================
--- ACMServer/trunk/ACMServer/Plugins/TesterPlugins/SubmitterGUIPlugin/SubmitterGUIUserControl.Designer.cs 2008-12-11 10:09:19 UTC (rev 443)
+++ ACMServer/trunk/ACMServer/Plugins/TesterPlugins/SubmitterGUIPlugin/SubmitterGUIUserControl.Designer.cs 2008-12-11 10:10:49 UTC (rev 444)
@@ -35,6 +35,7 @@
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.problemTextBox = new System.Windows.Forms.TextBox();
+ this.comboBox1 = new System.Windows.Forms.ComboBox();
this.SuspendLayout();
//
// panel1
@@ -75,7 +76,7 @@
this.languageTextBox.Enabled = false;
this.languageTextBox.Location = new System.Drawing.Point(64, 3);
this.languageTextBox.Name = "languageTextBox";
- this.languageTextBox.Size = new System.Drawing.Size(100, 20);
+ this.languageTextBox.Size = new System.Drawing.Size(27, 20);
this.languageTextBox.TabIndex = 3;
this.languageTextBox.Text = "1";
//
@@ -105,10 +106,24 @@
this.problemTextBox.TabIndex = 5;
this.problemTextBox.Text = "1";
//
+ // comboBox1
+ //
+ this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.comboBox1.FormattingEnabled = true;
+ this.comboBox1.Items.AddRange(new object[] {
+ "1 (Pascal)",
+ "2 (C++)"});
+ this.comboBox1.Location = new System.Drawing.Point(97, 3);
+ this.comboBox1.Name = "comboBox1";
+ this.comboBox1.Size = new System.Drawing.Size(67, 21);
+ this.comboBox1.TabIndex = 7;
+ this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged);
+ //
// SubmitterGUIUserControl
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.comboBox1);
this.Controls.Add(this.label2);
this.Controls.Add(this.problemTextBox);
this.Controls.Add(this.label1);
@@ -132,5 +147,6 @@
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.TextBox problemTextBox;
+ private System.Windows.Forms.ComboBox comboBox1;
}
}
Modified: ACMServer/trunk/ACMServer/Plugins/TesterPlugins/SubmitterGUIPlugin/SubmitterGUIUserControl.cs
===================================================================
--- ACMServer/trunk/ACMServer/Plugins/TesterPlugins/SubmitterGUIPlugin/SubmitterGUIUserControl.cs 2008-12-11 10:09:19 UTC (rev 443)
+++ ACMServer/trunk/ACMServer/Plugins/TesterPlugins/SubmitterGUIPlugin/SubmitterGUIUserControl.cs 2008-12-11 10:10:49 UTC (rev 444)
@@ -42,5 +42,10 @@
int problem = Int32.Parse(problemTextBox.Text);
plugin.SendSubmit(sourceTextBox.Text, lang, problem);
}
+
+ private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ languageTextBox.Text = ""+comboBox1.Text[0];
+ }
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|