|
From: <br...@us...> - 2008-06-28 12:23:20
|
Revision: 286
http://acmcontester.svn.sourceforge.net/acmcontester/?rev=286&view=rev
Author: brus07
Date: 2008-06-28 05:23:27 -0700 (Sat, 28 Jun 2008)
Log Message:
-----------
Rename file of SocketServerGatePlugin UserControl
Modified Paths:
--------------
ACMServer/trunk/ACMServer/Plugins/MediatorPlugins/SocketServerGatePlugin/SocketServerGatePlugin.csproj
Added Paths:
-----------
ACMServer/trunk/ACMServer/Plugins/MediatorPlugins/SocketServerGatePlugin/SocketServerGatePluginUserControl.Designer.cs
ACMServer/trunk/ACMServer/Plugins/MediatorPlugins/SocketServerGatePlugin/SocketServerGatePluginUserControl.cs
ACMServer/trunk/ACMServer/Plugins/MediatorPlugins/SocketServerGatePlugin/SocketServerGatePluginUserControl.resx
Removed Paths:
-------------
ACMServer/trunk/ACMServer/Plugins/MediatorPlugins/SocketServerGatePlugin/TestUserControl.Designer.cs
ACMServer/trunk/ACMServer/Plugins/MediatorPlugins/SocketServerGatePlugin/TestUserControl.cs
ACMServer/trunk/ACMServer/Plugins/MediatorPlugins/SocketServerGatePlugin/TestUserControl.resx
Modified: ACMServer/trunk/ACMServer/Plugins/MediatorPlugins/SocketServerGatePlugin/SocketServerGatePlugin.csproj
===================================================================
--- ACMServer/trunk/ACMServer/Plugins/MediatorPlugins/SocketServerGatePlugin/SocketServerGatePlugin.csproj 2008-06-28 11:29:06 UTC (rev 285)
+++ ACMServer/trunk/ACMServer/Plugins/MediatorPlugins/SocketServerGatePlugin/SocketServerGatePlugin.csproj 2008-06-28 12:23:27 UTC (rev 286)
@@ -38,11 +38,11 @@
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="SocketServerGate.cs" />
<Compile Include="SocketServerGatePlugin.cs" />
- <Compile Include="TestUserControl.cs">
+ <Compile Include="SocketServerGatePluginUserControl.cs">
<SubType>UserControl</SubType>
</Compile>
- <Compile Include="TestUserControl.Designer.cs">
- <DependentUpon>TestUserControl.cs</DependentUpon>
+ <Compile Include="SocketServerGatePluginUserControl.Designer.cs">
+ <DependentUpon>SocketServerGatePluginUserControl.cs</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
@@ -64,9 +64,9 @@
</ProjectReference>
</ItemGroup>
<ItemGroup>
- <EmbeddedResource Include="TestUserControl.resx">
+ <EmbeddedResource Include="SocketServerGatePluginUserControl.resx">
<SubType>Designer</SubType>
- <DependentUpon>TestUserControl.cs</DependentUpon>
+ <DependentUpon>SocketServerGatePluginUserControl.cs</DependentUpon>
</EmbeddedResource>
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
Copied: ACMServer/trunk/ACMServer/Plugins/MediatorPlugins/SocketServerGatePlugin/SocketServerGatePluginUserControl.Designer.cs (from rev 284, ACMServer/trunk/ACMServer/Plugins/MediatorPlugins/SocketServerGatePlugin/TestUserControl.Designer.cs)
===================================================================
--- ACMServer/trunk/ACMServer/Plugins/MediatorPlugins/SocketServerGatePlugin/SocketServerGatePluginUserControl.Designer.cs (rev 0)
+++ ACMServer/trunk/ACMServer/Plugins/MediatorPlugins/SocketServerGatePlugin/SocketServerGatePluginUserControl.Designer.cs 2008-06-28 12:23:27 UTC (rev 286)
@@ -0,0 +1,110 @@
+namespace SocketServerGatePlugin
+{
+ partial class SocketServerGatePluginUserControl
+ {
+ /// <summary>
+ /// Required designer variable.
+ /// </summary>
+ private System.ComponentModel.IContainer components = null;
+
+ /// <summary>
+ /// Clean up any resources being used.
+ /// </summary>
+ /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Component Designer generated code
+
+ /// <summary>
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ /// </summary>
+ private void InitializeComponent()
+ {
+ this.components = new System.ComponentModel.Container();
+ this.textBox1 = new System.Windows.Forms.TextBox();
+ this.socketGateStatusStrip = new System.Windows.Forms.StatusStrip();
+ this.clientsCountToolStripStatusLabel = new System.Windows.Forms.ToolStripStatusLabel();
+ this.clientCountTimer = new System.Windows.Forms.Timer(this.components);
+ this.autoScrollCheckBox = new System.Windows.Forms.CheckBox();
+ this.socketGateStatusStrip.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // textBox1
+ //
+ this.textBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.textBox1.Location = new System.Drawing.Point(3, 26);
+ this.textBox1.Multiline = true;
+ this.textBox1.Name = "textBox1";
+ this.textBox1.ScrollBars = System.Windows.Forms.ScrollBars.Both;
+ this.textBox1.Size = new System.Drawing.Size(211, 130);
+ this.textBox1.TabIndex = 1;
+ //
+ // socketGateStatusStrip
+ //
+ this.socketGateStatusStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
+ this.clientsCountToolStripStatusLabel});
+ this.socketGateStatusStrip.Location = new System.Drawing.Point(0, 159);
+ this.socketGateStatusStrip.Name = "socketGateStatusStrip";
+ this.socketGateStatusStrip.Size = new System.Drawing.Size(217, 22);
+ this.socketGateStatusStrip.TabIndex = 3;
+ this.socketGateStatusStrip.Text = "statusStrip1";
+ //
+ // clientsCountToolStripStatusLabel
+ //
+ this.clientsCountToolStripStatusLabel.Name = "clientsCountToolStripStatusLabel";
+ this.clientsCountToolStripStatusLabel.Size = new System.Drawing.Size(87, 17);
+ this.clientsCountToolStripStatusLabel.Text = "CountOfClients: ";
+ //
+ // clientCountTimer
+ //
+ this.clientCountTimer.Tick += new System.EventHandler(this.clientCountTimer_Tick);
+ //
+ // autoScrollCheckBox
+ //
+ this.autoScrollCheckBox.AutoSize = true;
+ this.autoScrollCheckBox.Checked = true;
+ this.autoScrollCheckBox.CheckState = System.Windows.Forms.CheckState.Checked;
+ this.autoScrollCheckBox.Enabled = false;
+ this.autoScrollCheckBox.Location = new System.Drawing.Point(3, 3);
+ this.autoScrollCheckBox.Name = "autoScrollCheckBox";
+ this.autoScrollCheckBox.Size = new System.Drawing.Size(74, 17);
+ this.autoScrollCheckBox.TabIndex = 4;
+ this.autoScrollCheckBox.Text = "AutoScroll";
+ this.autoScrollCheckBox.UseVisualStyleBackColor = true;
+ //
+ // SocketServerGatePluginUserControl
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.autoScrollCheckBox);
+ this.Controls.Add(this.socketGateStatusStrip);
+ this.Controls.Add(this.textBox1);
+ this.Name = "SocketServerGatePluginUserControl";
+ this.Size = new System.Drawing.Size(217, 181);
+ this.Load += new System.EventHandler(this.SocketServerGatePluginUserControl_Load);
+ this.socketGateStatusStrip.ResumeLayout(false);
+ this.socketGateStatusStrip.PerformLayout();
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.TextBox textBox1;
+ private System.Windows.Forms.StatusStrip socketGateStatusStrip;
+ private System.Windows.Forms.ToolStripStatusLabel clientsCountToolStripStatusLabel;
+ private System.Windows.Forms.Timer clientCountTimer;
+ private System.Windows.Forms.CheckBox autoScrollCheckBox;
+ }
+}
Copied: ACMServer/trunk/ACMServer/Plugins/MediatorPlugins/SocketServerGatePlugin/SocketServerGatePluginUserControl.cs (from rev 284, ACMServer/trunk/ACMServer/Plugins/MediatorPlugins/SocketServerGatePlugin/TestUserControl.cs)
===================================================================
--- ACMServer/trunk/ACMServer/Plugins/MediatorPlugins/SocketServerGatePlugin/SocketServerGatePluginUserControl.cs (rev 0)
+++ ACMServer/trunk/ACMServer/Plugins/MediatorPlugins/SocketServerGatePlugin/SocketServerGatePluginUserControl.cs 2008-06-28 12:23:27 UTC (rev 286)
@@ -0,0 +1,65 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Drawing;
+using System.Data;
+using System.Text;
+using System.Windows.Forms;
+using AcmContester.Plugins.MediatorPlugins.SocketServerGatePlugin;
+
+namespace SocketServerGatePlugin
+{
+ public partial class SocketServerGatePluginUserControl : UserControl
+ {
+ public SocketServerGatePluginUserControl()
+ {
+ InitializeComponent();
+ }
+
+ delegate void AddTextCallback(string text);
+ public void AddText(string text)
+ {
+ if (this.textBox1.InvokeRequired)
+ {
+ AddTextCallback d = new AddTextCallback(AddText);
+ this.Invoke(d, new object[] { text });
+ }
+ else
+ {
+ textBox1.Text += text;
+ if (autoScrollCheckBox.Checked)
+ {
+ textBox1.Select(textBox1.Text.Length, 0);
+ textBox1.ScrollToCaret();
+ }
+ }
+ }
+
+ delegate void UpdateClientsCountStatusCallback(int clientsCount);
+ public void UpdateClientsCountStatus(int clientsCount)
+ {
+ if (this.socketGateStatusStrip.InvokeRequired)
+ {
+ UpdateClientsCountStatusCallback d = new UpdateClientsCountStatusCallback(UpdateClientsCountStatus);
+ this.Invoke(d, new object[] { clientsCount });
+ }
+ else
+ {
+ clientsCountToolStripStatusLabel.Text = "CountOfClients: ";
+ clientsCountToolStripStatusLabel.Text += clientsCount.ToString();
+ }
+ }
+
+ private void clientCountTimer_Tick(object sender, EventArgs e)
+ {
+ SocketServerGate gate = SocketServerGate.GetInstance();
+ int count = gate.CountClients();
+ UpdateClientsCountStatus(count);
+ }
+
+ private void SocketServerGatePluginUserControl_Load(object sender, EventArgs e)
+ {
+ clientCountTimer.Enabled = true;
+ }
+ }
+}
Copied: ACMServer/trunk/ACMServer/Plugins/MediatorPlugins/SocketServerGatePlugin/SocketServerGatePluginUserControl.resx (from rev 284, ACMServer/trunk/ACMServer/Plugins/MediatorPlugins/SocketServerGatePlugin/TestUserControl.resx)
===================================================================
--- ACMServer/trunk/ACMServer/Plugins/MediatorPlugins/SocketServerGatePlugin/SocketServerGatePluginUserControl.resx (rev 0)
+++ ACMServer/trunk/ACMServer/Plugins/MediatorPlugins/SocketServerGatePlugin/SocketServerGatePluginUserControl.resx 2008-06-28 12:23:27 UTC (rev 286)
@@ -0,0 +1,126 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+ <!--
+ Microsoft ResX Schema
+
+ Version 2.0
+
+ The primary goals of this format is to allow a simple XML format
+ that is mostly human readable. The generation and parsing of the
+ various data types are done through the TypeConverter classes
+ associated with the data types.
+
+ Example:
+
+ ... ado.net/XML headers & schema ...
+ <resheader name="resmimetype">text/microsoft-resx</resheader>
+ <resheader name="version">2.0</resheader>
+ <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+ <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+ <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+ <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+ <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+ <value>[base64 mime encoded serialized .NET Framework object]</value>
+ </data>
+ <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+ <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+ <comment>This is a comment</comment>
+ </data>
+
+ There are any number of "resheader" rows that contain simple
+ name/value pairs.
+
+ Each data row contains a name, and value. The row also contains a
+ type or mimetype. Type corresponds to a .NET class that support
+ text/value conversion through the TypeConverter architecture.
+ Classes that don't support this are serialized and stored with the
+ mimetype set.
+
+ The mimetype is used for serialized objects, and tells the
+ ResXResourceReader how to depersist the object. This is currently not
+ extensible. For a given mimetype the value must be set accordingly:
+
+ Note - application/x-microsoft.net.object.binary.base64 is the format
+ that the ResXResourceWriter will generate, however the reader can
+ read any of the formats listed below.
+
+ mimetype: application/x-microsoft.net.object.binary.base64
+ value : The object must be serialized with
+ : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.soap.base64
+ value : The object must be serialized with
+ : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.bytearray.base64
+ value : The object must be serialized into a byte array
+ : using a System.ComponentModel.TypeConverter
+ : and then encoded with base64 encoding.
+ -->
+ <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+ <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
+ <xsd:element name="root" msdata:IsDataSet="true">
+ <xsd:complexType>
+ <xsd:choice maxOccurs="unbounded">
+ <xsd:element name="metadata">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" />
+ </xsd:sequence>
+ <xsd:attribute name="name" use="required" type="xsd:string" />
+ <xsd:attribute name="type" type="xsd:string" />
+ <xsd:attribute name="mimetype" type="xsd:string" />
+ <xsd:attribute ref="xml:space" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="assembly">
+ <xsd:complexType>
+ <xsd:attribute name="alias" type="xsd:string" />
+ <xsd:attribute name="name" type="xsd:string" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="data">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
+ <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+ <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+ <xsd:attribute ref="xml:space" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="resheader">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required" />
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:choice>
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:schema>
+ <resheader name="resmimetype">
+ <value>text/microsoft-resx</value>
+ </resheader>
+ <resheader name="version">
+ <value>2.0</value>
+ </resheader>
+ <resheader name="reader">
+ <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <resheader name="writer">
+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <metadata name="socketGateStatusStrip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+ <value>17, 17</value>
+ </metadata>
+ <metadata name="clientCountTimer.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+ <value>178, 17</value>
+ </metadata>
+</root>
\ No newline at end of file
Deleted: ACMServer/trunk/ACMServer/Plugins/MediatorPlugins/SocketServerGatePlugin/TestUserControl.Designer.cs
===================================================================
--- ACMServer/trunk/ACMServer/Plugins/MediatorPlugins/SocketServerGatePlugin/TestUserControl.Designer.cs 2008-06-28 11:29:06 UTC (rev 285)
+++ ACMServer/trunk/ACMServer/Plugins/MediatorPlugins/SocketServerGatePlugin/TestUserControl.Designer.cs 2008-06-28 12:23:27 UTC (rev 286)
@@ -1,110 +0,0 @@
-namespace SocketServerGatePlugin
-{
- partial class SocketServerGatePluginUserControl
- {
- /// <summary>
- /// Required designer variable.
- /// </summary>
- private System.ComponentModel.IContainer components = null;
-
- /// <summary>
- /// Clean up any resources being used.
- /// </summary>
- /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
- protected override void Dispose(bool disposing)
- {
- if (disposing && (components != null))
- {
- components.Dispose();
- }
- base.Dispose(disposing);
- }
-
- #region Component Designer generated code
-
- /// <summary>
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- /// </summary>
- private void InitializeComponent()
- {
- this.components = new System.ComponentModel.Container();
- this.textBox1 = new System.Windows.Forms.TextBox();
- this.socketGateStatusStrip = new System.Windows.Forms.StatusStrip();
- this.clientsCountToolStripStatusLabel = new System.Windows.Forms.ToolStripStatusLabel();
- this.clientCountTimer = new System.Windows.Forms.Timer(this.components);
- this.autoScrollCheckBox = new System.Windows.Forms.CheckBox();
- this.socketGateStatusStrip.SuspendLayout();
- this.SuspendLayout();
- //
- // textBox1
- //
- this.textBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
- | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
- this.textBox1.Location = new System.Drawing.Point(3, 26);
- this.textBox1.Multiline = true;
- this.textBox1.Name = "textBox1";
- this.textBox1.ScrollBars = System.Windows.Forms.ScrollBars.Both;
- this.textBox1.Size = new System.Drawing.Size(211, 130);
- this.textBox1.TabIndex = 1;
- //
- // socketGateStatusStrip
- //
- this.socketGateStatusStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
- this.clientsCountToolStripStatusLabel});
- this.socketGateStatusStrip.Location = new System.Drawing.Point(0, 159);
- this.socketGateStatusStrip.Name = "socketGateStatusStrip";
- this.socketGateStatusStrip.Size = new System.Drawing.Size(217, 22);
- this.socketGateStatusStrip.TabIndex = 3;
- this.socketGateStatusStrip.Text = "statusStrip1";
- //
- // clientsCountToolStripStatusLabel
- //
- this.clientsCountToolStripStatusLabel.Name = "clientsCountToolStripStatusLabel";
- this.clientsCountToolStripStatusLabel.Size = new System.Drawing.Size(87, 17);
- this.clientsCountToolStripStatusLabel.Text = "CountOfClients: ";
- //
- // clientCountTimer
- //
- this.clientCountTimer.Tick += new System.EventHandler(this.clientCountTimer_Tick);
- //
- // autoScrollCheckBox
- //
- this.autoScrollCheckBox.AutoSize = true;
- this.autoScrollCheckBox.Checked = true;
- this.autoScrollCheckBox.CheckState = System.Windows.Forms.CheckState.Checked;
- this.autoScrollCheckBox.Enabled = false;
- this.autoScrollCheckBox.Location = new System.Drawing.Point(3, 3);
- this.autoScrollCheckBox.Name = "autoScrollCheckBox";
- this.autoScrollCheckBox.Size = new System.Drawing.Size(74, 17);
- this.autoScrollCheckBox.TabIndex = 4;
- this.autoScrollCheckBox.Text = "AutoScroll";
- this.autoScrollCheckBox.UseVisualStyleBackColor = true;
- //
- // SocketServerGatePluginUserControl
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.Controls.Add(this.autoScrollCheckBox);
- this.Controls.Add(this.socketGateStatusStrip);
- this.Controls.Add(this.textBox1);
- this.Name = "SocketServerGatePluginUserControl";
- this.Size = new System.Drawing.Size(217, 181);
- this.Load += new System.EventHandler(this.SocketServerGatePluginUserControl_Load);
- this.socketGateStatusStrip.ResumeLayout(false);
- this.socketGateStatusStrip.PerformLayout();
- this.ResumeLayout(false);
- this.PerformLayout();
-
- }
-
- #endregion
-
- private System.Windows.Forms.TextBox textBox1;
- private System.Windows.Forms.StatusStrip socketGateStatusStrip;
- private System.Windows.Forms.ToolStripStatusLabel clientsCountToolStripStatusLabel;
- private System.Windows.Forms.Timer clientCountTimer;
- private System.Windows.Forms.CheckBox autoScrollCheckBox;
- }
-}
Deleted: ACMServer/trunk/ACMServer/Plugins/MediatorPlugins/SocketServerGatePlugin/TestUserControl.cs
===================================================================
--- ACMServer/trunk/ACMServer/Plugins/MediatorPlugins/SocketServerGatePlugin/TestUserControl.cs 2008-06-28 11:29:06 UTC (rev 285)
+++ ACMServer/trunk/ACMServer/Plugins/MediatorPlugins/SocketServerGatePlugin/TestUserControl.cs 2008-06-28 12:23:27 UTC (rev 286)
@@ -1,65 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Drawing;
-using System.Data;
-using System.Text;
-using System.Windows.Forms;
-using AcmContester.Plugins.MediatorPlugins.SocketServerGatePlugin;
-
-namespace SocketServerGatePlugin
-{
- public partial class SocketServerGatePluginUserControl : UserControl
- {
- public SocketServerGatePluginUserControl()
- {
- InitializeComponent();
- }
-
- delegate void AddTextCallback(string text);
- public void AddText(string text)
- {
- if (this.textBox1.InvokeRequired)
- {
- AddTextCallback d = new AddTextCallback(AddText);
- this.Invoke(d, new object[] { text });
- }
- else
- {
- textBox1.Text += text;
- if (autoScrollCheckBox.Checked)
- {
- textBox1.Select(textBox1.Text.Length, 0);
- textBox1.ScrollToCaret();
- }
- }
- }
-
- delegate void UpdateClientsCountStatusCallback(int clientsCount);
- public void UpdateClientsCountStatus(int clientsCount)
- {
- if (this.socketGateStatusStrip.InvokeRequired)
- {
- UpdateClientsCountStatusCallback d = new UpdateClientsCountStatusCallback(UpdateClientsCountStatus);
- this.Invoke(d, new object[] { clientsCount });
- }
- else
- {
- clientsCountToolStripStatusLabel.Text = "CountOfClients: ";
- clientsCountToolStripStatusLabel.Text += clientsCount.ToString();
- }
- }
-
- private void clientCountTimer_Tick(object sender, EventArgs e)
- {
- SocketServerGate gate = SocketServerGate.GetInstance();
- int count = gate.CountClients();
- UpdateClientsCountStatus(count);
- }
-
- private void SocketServerGatePluginUserControl_Load(object sender, EventArgs e)
- {
- clientCountTimer.Enabled = true;
- }
- }
-}
Deleted: ACMServer/trunk/ACMServer/Plugins/MediatorPlugins/SocketServerGatePlugin/TestUserControl.resx
===================================================================
--- ACMServer/trunk/ACMServer/Plugins/MediatorPlugins/SocketServerGatePlugin/TestUserControl.resx 2008-06-28 11:29:06 UTC (rev 285)
+++ ACMServer/trunk/ACMServer/Plugins/MediatorPlugins/SocketServerGatePlugin/TestUserControl.resx 2008-06-28 12:23:27 UTC (rev 286)
@@ -1,126 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<root>
- <!--
- Microsoft ResX Schema
-
- Version 2.0
-
- The primary goals of this format is to allow a simple XML format
- that is mostly human readable. The generation and parsing of the
- various data types are done through the TypeConverter classes
- associated with the data types.
-
- Example:
-
- ... ado.net/XML headers & schema ...
- <resheader name="resmimetype">text/microsoft-resx</resheader>
- <resheader name="version">2.0</resheader>
- <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
- <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
- <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
- <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
- <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
- <value>[base64 mime encoded serialized .NET Framework object]</value>
- </data>
- <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
- <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
- <comment>This is a comment</comment>
- </data>
-
- There are any number of "resheader" rows that contain simple
- name/value pairs.
-
- Each data row contains a name, and value. The row also contains a
- type or mimetype. Type corresponds to a .NET class that support
- text/value conversion through the TypeConverter architecture.
- Classes that don't support this are serialized and stored with the
- mimetype set.
-
- The mimetype is used for serialized objects, and tells the
- ResXResourceReader how to depersist the object. This is currently not
- extensible. For a given mimetype the value must be set accordingly:
-
- Note - application/x-microsoft.net.object.binary.base64 is the format
- that the ResXResourceWriter will generate, however the reader can
- read any of the formats listed below.
-
- mimetype: application/x-microsoft.net.object.binary.base64
- value : The object must be serialized with
- : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
- : and then encoded with base64 encoding.
-
- mimetype: application/x-microsoft.net.object.soap.base64
- value : The object must be serialized with
- : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
- : and then encoded with base64 encoding.
-
- mimetype: application/x-microsoft.net.object.bytearray.base64
- value : The object must be serialized into a byte array
- : using a System.ComponentModel.TypeConverter
- : and then encoded with base64 encoding.
- -->
- <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
- <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
- <xsd:element name="root" msdata:IsDataSet="true">
- <xsd:complexType>
- <xsd:choice maxOccurs="unbounded">
- <xsd:element name="metadata">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="value" type="xsd:string" minOccurs="0" />
- </xsd:sequence>
- <xsd:attribute name="name" use="required" type="xsd:string" />
- <xsd:attribute name="type" type="xsd:string" />
- <xsd:attribute name="mimetype" type="xsd:string" />
- <xsd:attribute ref="xml:space" />
- </xsd:complexType>
- </xsd:element>
- <xsd:element name="assembly">
- <xsd:complexType>
- <xsd:attribute name="alias" type="xsd:string" />
- <xsd:attribute name="name" type="xsd:string" />
- </xsd:complexType>
- </xsd:element>
- <xsd:element name="data">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
- <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
- </xsd:sequence>
- <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
- <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
- <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
- <xsd:attribute ref="xml:space" />
- </xsd:complexType>
- </xsd:element>
- <xsd:element name="resheader">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
- </xsd:sequence>
- <xsd:attribute name="name" type="xsd:string" use="required" />
- </xsd:complexType>
- </xsd:element>
- </xsd:choice>
- </xsd:complexType>
- </xsd:element>
- </xsd:schema>
- <resheader name="resmimetype">
- <value>text/microsoft-resx</value>
- </resheader>
- <resheader name="version">
- <value>2.0</value>
- </resheader>
- <resheader name="reader">
- <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
- </resheader>
- <resheader name="writer">
- <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
- </resheader>
- <metadata name="socketGateStatusStrip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
- <value>17, 17</value>
- </metadata>
- <metadata name="clientCountTimer.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
- <value>178, 17</value>
- </metadata>
-</root>
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|