[csmaild-cvs] csmaild/src/TestClient TestClient.2002.csproj,NONE,1.1 .cvsignore,1.1,1.2 Main.cs,1.1,
Brought to you by:
tamc
From: <ta...@us...> - 2003-07-26 05:21:04
|
Update of /cvsroot/csmaild/csmaild/src/TestClient In directory sc8-pr-cvs1:/tmp/cvs-serv25794/src/TestClient Modified Files: .cvsignore Main.cs Main.resx Added Files: TestClient.2002.csproj Log Message: Added VS.NET 2002 solution and project files (they have a 2002 in the name) Updated ignore files to be less specific to ignore all user setting files Minor updates to crappy testclient --- NEW FILE: TestClient.2002.csproj --- <VisualStudioProject> <CSHARP ProjectType = "Local" ProductVersion = "7.0.9466" SchemaVersion = "1.0" ProjectGuid = "{9B24F657-10EF-4F52-A02B-F0C630ED8037}" > <Build> <Settings ApplicationIcon = "App.ico" AssemblyKeyContainerName = "" AssemblyName = "TestClient" AssemblyOriginatorKeyFile = "" DefaultClientScript = "JScript" DefaultHTMLPageLayout = "Grid" DefaultTargetSchema = "IE50" DelaySign = "false" OutputType = "Exe" RootNamespace = "TestClient" StartupObject = "TestClient.MainF" > <Config Name = "Debug" AllowUnsafeBlocks = "false" BaseAddress = "285212672" CheckForOverflowUnderflow = "false" ConfigurationOverrideFile = "" DefineConstants = "DEBUG;TRACE" DocumentationFile = "" DebugSymbols = "true" FileAlignment = "4096" IncrementalBuild = "true" Optimize = "false" OutputPath = "bin\Debug\" RegisterForComInterop = "false" RemoveIntegerChecks = "false" TreatWarningsAsErrors = "false" WarningLevel = "4" /> <Config Name = "Release" AllowUnsafeBlocks = "false" BaseAddress = "285212672" CheckForOverflowUnderflow = "false" ConfigurationOverrideFile = "" DefineConstants = "TRACE" DocumentationFile = "" DebugSymbols = "false" FileAlignment = "4096" IncrementalBuild = "false" Optimize = "true" OutputPath = "bin\Release\" RegisterForComInterop = "false" RemoveIntegerChecks = "false" TreatWarningsAsErrors = "false" WarningLevel = "4" /> </Settings> <References> <Reference Name = "System" AssemblyName = "System" HintPath = "..\..\..\..\..\..\WINDOWS\Microsoft.NET\Framework\v1.0.3705\System.dll" /> <Reference Name = "System.Data" AssemblyName = "System.Data" HintPath = "..\..\..\..\..\..\WINDOWS\Microsoft.NET\Framework\v1.0.3705\System.Data.dll" /> <Reference Name = "System.Drawing" AssemblyName = "System.Drawing" HintPath = "..\..\..\..\..\..\WINDOWS\Microsoft.NET\Framework\v1.0.3705\System.Drawing.dll" /> <Reference Name = "System.Windows.Forms" AssemblyName = "System.Windows.Forms" HintPath = "..\..\..\..\..\..\WINDOWS\Microsoft.NET\Framework\v1.0.3705\System.Windows.Forms.dll" /> <Reference Name = "System.XML" AssemblyName = "System.Xml" HintPath = "..\..\..\..\..\..\WINDOWS\Microsoft.NET\Framework\v1.0.3705\System.XML.dll" /> </References> </Build> <Files> <Include> <File RelPath = "App.ico" BuildAction = "Content" /> <File RelPath = "AssemblyInfo.cs" SubType = "Code" BuildAction = "Compile" /> <File RelPath = "ClientHelper.cs" SubType = "Code" BuildAction = "Compile" /> <File RelPath = "Main.cs" SubType = "Form" BuildAction = "Compile" /> <File RelPath = "Main.resx" DependentUpon = "Main.cs" BuildAction = "EmbeddedResource" /> </Include> </Files> </CSHARP> </VisualStudioProject> Index: .cvsignore =================================================================== RCS file: /cvsroot/csmaild/csmaild/src/TestClient/.cvsignore,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** .cvsignore 24 Jul 2003 04:32:14 -0000 1.1 --- .cvsignore 25 Jul 2003 14:50:31 -0000 1.2 *************** *** 1,3 **** ! common.csproj.user bin obj --- 1,3 ---- ! *.csproj.user bin obj Index: Main.cs =================================================================== RCS file: /cvsroot/csmaild/csmaild/src/TestClient/Main.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Main.cs 24 Jul 2003 04:32:14 -0000 1.1 --- Main.cs 25 Jul 2003 14:50:31 -0000 1.2 *************** *** 75,79 **** this.listBox1.Location = new System.Drawing.Point(8, 40); this.listBox1.Name = "listBox1"; ! this.listBox1.Size = new System.Drawing.Size(352, 308); this.listBox1.TabIndex = 0; this.listBox1.SelectedIndexChanged += new System.EventHandler(this.listBox1_SelectedIndexChanged); --- 75,79 ---- this.listBox1.Location = new System.Drawing.Point(8, 40); this.listBox1.Name = "listBox1"; ! this.listBox1.Size = new System.Drawing.Size(352, 340); this.listBox1.TabIndex = 0; this.listBox1.SelectedIndexChanged += new System.EventHandler(this.listBox1_SelectedIndexChanged); *************** *** 83,87 **** this.button1.Location = new System.Drawing.Point(16, 8); this.button1.Name = "button1"; - this.button1.Size = new System.Drawing.Size(96, 23); this.button1.TabIndex = 1; this.button1.Text = "Test Localhost"; --- 83,86 ---- *************** *** 92,96 **** this.button2.Location = new System.Drawing.Point(632, 8); this.button2.Name = "button2"; - this.button2.Size = new System.Drawing.Size(88, 23); this.button2.TabIndex = 2; this.button2.Text = "Test Chegg"; --- 91,94 ---- *************** *** 106,110 **** this.listBox2.Location = new System.Drawing.Point(368, 40); this.listBox2.Name = "listBox2"; ! this.listBox2.Size = new System.Drawing.Size(352, 308); this.listBox2.TabIndex = 3; this.listBox2.SelectedIndexChanged += new System.EventHandler(this.listBox2_SelectedIndexChanged); --- 104,108 ---- this.listBox2.Location = new System.Drawing.Point(368, 40); this.listBox2.Name = "listBox2"; ! this.listBox2.Size = new System.Drawing.Size(336, 340); this.listBox2.TabIndex = 3; this.listBox2.SelectedIndexChanged += new System.EventHandler(this.listBox2_SelectedIndexChanged); *************** *** 121,125 **** // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); ! this.ClientSize = new System.Drawing.Size(728, 357); this.Controls.Add(this.button3); this.Controls.Add(this.listBox2); --- 119,123 ---- // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); ! this.ClientSize = new System.Drawing.Size(712, 389); this.Controls.Add(this.button3); this.Controls.Add(this.listBox2); *************** *** 138,141 **** --- 136,141 ---- h.Send(msg + "\r\n"); box.Items.Add(counter++.ToString().PadLeft(4, ' ') + " -> " + msg); + + Application.DoEvents(); } *************** *** 145,148 **** --- 145,150 ---- box.Items.Add(counter++.ToString().PadLeft(4, ' ') + " <- " + line); + Application.DoEvents(); + return line; } *************** *** 150,153 **** --- 152,156 ---- private void button1_Click(object sender, System.EventArgs e) { + listBox1.Items.Clear(); ClientHelper localhost = new ClientHelper("localhost", 143); Go(localhost, listBox1); *************** *** 156,159 **** --- 159,163 ---- private void button2_Click(object sender, System.EventArgs e) { + listBox1.Items.Clear(); ClientHelper chegg = new ClientHelper("chegg.com", 143); Go(chegg, listBox2); *************** *** 162,165 **** --- 166,171 ---- private void button3_Click(object sender, System.EventArgs e) { + listBox1.Items.Clear(); + listBox2.Items.Clear(); ClientHelper localhost = new ClientHelper("localhost", 143); Go(localhost, listBox1); *************** *** 195,198 **** --- 201,219 ---- while(!a3.StartsWith("a3")) a3 = ReadLine(h, box); + + string a4 = string.Empty; + SendLine("a4 LSUB \"\" \"*\"", h, box); + while(!a4.StartsWith("a4")) + a4 = ReadLine(h, box); + + string a5 = string.Empty; + SendLine("a5 SELECT \"INBOX\"", h, box); + while(!a5.StartsWith("a5")) + a5 = ReadLine(h, box); + + string zz = string.Empty; + SendLine("zz LOGOUT", h, box); + while(!zz.StartsWith("zz")) + zz = ReadLine(h, box); } Index: Main.resx =================================================================== RCS file: /cvsroot/csmaild/csmaild/src/TestClient/Main.resx,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Main.resx 24 Jul 2003 04:32:14 -0000 1.1 --- Main.resx 25 Jul 2003 14:50:31 -0000 1.2 *************** *** 146,158 **** <value>False</value> </data> - <data name="$this.Language" type="System.Globalization.CultureInfo, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>(Default)</value> - </data> <data name="$this.TrayLargeIcon" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <value>False</value> </data> - <data name="$this.Name"> - <value>MainF</value> - </data> <data name="$this.Localizable" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <value>False</value> --- 146,152 ---- *************** *** 161,166 **** --- 155,166 ---- <value>8, 8</value> </data> + <data name="$this.Language" type="System.Globalization.CultureInfo, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>(Default)</value> + </data> <data name="$this.DrawGrid" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <value>True</value> + </data> + <data name="$this.Name"> + <value>MainF</value> </data> <data name="$this.TrayHeight" type="System.Int32, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |