Kevin Hester
11 years ago
committed by
Randy Mackay
14 changed files with 1001 additions and 1001 deletions
@ -1,20 +1,20 @@
@@ -1,20 +1,20 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 11.00 |
||||
# Visual C# Express 2010 |
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SerialProxy", "SerialProxy\SerialProxy.csproj", "{5337375B-6393-49B2-A544-B53AAFD1C4F9}" |
||||
EndProject |
||||
Global |
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution |
||||
Debug|x86 = Debug|x86 |
||||
Release|x86 = Release|x86 |
||||
EndGlobalSection |
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution |
||||
{5337375B-6393-49B2-A544-B53AAFD1C4F9}.Debug|x86.ActiveCfg = Debug|x86 |
||||
{5337375B-6393-49B2-A544-B53AAFD1C4F9}.Debug|x86.Build.0 = Debug|x86 |
||||
{5337375B-6393-49B2-A544-B53AAFD1C4F9}.Release|x86.ActiveCfg = Release|x86 |
||||
{5337375B-6393-49B2-A544-B53AAFD1C4F9}.Release|x86.Build.0 = Release|x86 |
||||
EndGlobalSection |
||||
GlobalSection(SolutionProperties) = preSolution |
||||
HideSolutionNode = FALSE |
||||
EndGlobalSection |
||||
EndGlobal |
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 11.00 |
||||
# Visual C# Express 2010 |
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SerialProxy", "SerialProxy\SerialProxy.csproj", "{5337375B-6393-49B2-A544-B53AAFD1C4F9}" |
||||
EndProject |
||||
Global |
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution |
||||
Debug|x86 = Debug|x86 |
||||
Release|x86 = Release|x86 |
||||
EndGlobalSection |
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution |
||||
{5337375B-6393-49B2-A544-B53AAFD1C4F9}.Debug|x86.ActiveCfg = Debug|x86 |
||||
{5337375B-6393-49B2-A544-B53AAFD1C4F9}.Debug|x86.Build.0 = Debug|x86 |
||||
{5337375B-6393-49B2-A544-B53AAFD1C4F9}.Release|x86.ActiveCfg = Release|x86 |
||||
{5337375B-6393-49B2-A544-B53AAFD1C4F9}.Release|x86.Build.0 = Release|x86 |
||||
EndGlobalSection |
||||
GlobalSection(SolutionProperties) = preSolution |
||||
HideSolutionNode = FALSE |
||||
EndGlobalSection |
||||
EndGlobal |
||||
|
@ -1,235 +1,235 @@
@@ -1,235 +1,235 @@
|
||||
namespace SerialProxy |
||||
{ |
||||
partial class Form1 |
||||
{ |
||||
/// <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 Windows Form 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.CHK_reset = new System.Windows.Forms.ToolStripMenuItem(); |
||||
this.baudrate = new System.Windows.Forms.ToolStripComboBox(); |
||||
this.Comports = new System.Windows.Forms.ToolStripComboBox(); |
||||
this.ConnectComPort = new System.Windows.Forms.Button(); |
||||
this.tcpport = new System.Windows.Forms.ToolStripTextBox(); |
||||
this.outputlog = new System.Windows.Forms.RichTextBox(); |
||||
this.statusStrip1 = new System.Windows.Forms.StatusStrip(); |
||||
this.StatusCom = new System.Windows.Forms.ToolStripStatusLabel(); |
||||
this.StatusTCP = new System.Windows.Forms.ToolStripStatusLabel(); |
||||
this.menuStrip1 = new System.Windows.Forms.MenuStrip(); |
||||
this.optionsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); |
||||
this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); |
||||
this.toolStripMenuItem4 = new System.Windows.Forms.ToolStripMenuItem(); |
||||
this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripMenuItem(); |
||||
this.toolStripMenuItem5 = new System.Windows.Forms.ToolStripMenuItem(); |
||||
this.convertCRLF = new System.Windows.Forms.ToolStripMenuItem(); |
||||
this.statusStrip1.SuspendLayout(); |
||||
this.menuStrip1.SuspendLayout(); |
||||
this.SuspendLayout(); |
||||
// |
||||
// CHK_reset |
||||
// |
||||
this.CHK_reset.Checked = true; |
||||
this.CHK_reset.CheckState = System.Windows.Forms.CheckState.Checked; |
||||
this.CHK_reset.Name = "CHK_reset"; |
||||
this.CHK_reset.Size = new System.Drawing.Size(276, 22); |
||||
this.CHK_reset.Text = "Reset Arduino on first new connection"; |
||||
this.CHK_reset.Click += new System.EventHandler(this.CHK_reset_Click); |
||||
// |
||||
// baudrate |
||||
// |
||||
this.baudrate.Items.AddRange(new object[] { |
||||
"2400", |
||||
"4800", |
||||
"9600", |
||||
"19200", |
||||
"38400", |
||||
"57600", |
||||
"115200 "}); |
||||
this.baudrate.Name = "baudrate"; |
||||
this.baudrate.Size = new System.Drawing.Size(121, 23); |
||||
this.baudrate.Text = "38400"; |
||||
// |
||||
// Comports |
||||
// |
||||
this.Comports.Name = "Comports"; |
||||
this.Comports.Size = new System.Drawing.Size(121, 23); |
||||
this.Comports.Text = "Com Port"; |
||||
this.Comports.SelectedIndexChanged += new System.EventHandler(this.Comports_SelectedIndexChanged); |
||||
this.Comports.Click += new System.EventHandler(this.Comports_Click); |
||||
// |
||||
// ConnectComPort |
||||
// |
||||
this.ConnectComPort.Location = new System.Drawing.Point(12, 27); |
||||
this.ConnectComPort.Name = "ConnectComPort"; |
||||
this.ConnectComPort.Size = new System.Drawing.Size(128, 23); |
||||
this.ConnectComPort.TabIndex = 5; |
||||
this.ConnectComPort.Text = "Connect"; |
||||
this.ConnectComPort.UseVisualStyleBackColor = true; |
||||
this.ConnectComPort.Click += new System.EventHandler(this.ConnectComPort_Click); |
||||
// |
||||
// tcpport |
||||
// |
||||
this.tcpport.Name = "tcpport"; |
||||
this.tcpport.Size = new System.Drawing.Size(100, 23); |
||||
this.tcpport.Text = "5001"; |
||||
// |
||||
// outputlog |
||||
// |
||||
this.outputlog.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.outputlog.Location = new System.Drawing.Point(13, 56); |
||||
this.outputlog.Name = "outputlog"; |
||||
this.outputlog.ReadOnly = true; |
||||
this.outputlog.Size = new System.Drawing.Size(379, 171); |
||||
this.outputlog.TabIndex = 31; |
||||
this.outputlog.Text = ""; |
||||
this.outputlog.TextChanged += new System.EventHandler(this.outputlog_TextChanged); |
||||
// |
||||
// statusStrip1 |
||||
// |
||||
this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { |
||||
this.StatusCom, |
||||
this.StatusTCP}); |
||||
this.statusStrip1.Location = new System.Drawing.Point(0, 230); |
||||
this.statusStrip1.Name = "statusStrip1"; |
||||
this.statusStrip1.Size = new System.Drawing.Size(405, 22); |
||||
this.statusStrip1.TabIndex = 32; |
||||
this.statusStrip1.Text = "statusStrip1"; |
||||
// |
||||
// StatusCom |
||||
// |
||||
this.StatusCom.Name = "StatusCom"; |
||||
this.StatusCom.Size = new System.Drawing.Size(108, 17); |
||||
this.StatusCom.Text = "Com Disconnected"; |
||||
// |
||||
// StatusTCP |
||||
// |
||||
this.StatusTCP.Name = "StatusTCP"; |
||||
this.StatusTCP.Size = new System.Drawing.Size(104, 17); |
||||
this.StatusTCP.Text = "TCP Disconnected"; |
||||
// |
||||
// menuStrip1 |
||||
// |
||||
this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { |
||||
this.optionsToolStripMenuItem}); |
||||
this.menuStrip1.Location = new System.Drawing.Point(0, 0); |
||||
this.menuStrip1.Name = "menuStrip1"; |
||||
this.menuStrip1.Size = new System.Drawing.Size(405, 24); |
||||
this.menuStrip1.TabIndex = 33; |
||||
this.menuStrip1.Text = "menuStrip1"; |
||||
// |
||||
// optionsToolStripMenuItem |
||||
// |
||||
this.optionsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { |
||||
this.toolStripMenuItem1, |
||||
this.toolStripMenuItem2}); |
||||
this.optionsToolStripMenuItem.Name = "optionsToolStripMenuItem"; |
||||
this.optionsToolStripMenuItem.Size = new System.Drawing.Size(61, 20); |
||||
this.optionsToolStripMenuItem.Text = "Options"; |
||||
// |
||||
// toolStripMenuItem1 |
||||
// |
||||
this.toolStripMenuItem1.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { |
||||
this.Comports, |
||||
this.toolStripMenuItem4, |
||||
this.baudrate, |
||||
this.CHK_reset, |
||||
this.convertCRLF}); |
||||
this.toolStripMenuItem1.Name = "toolStripMenuItem1"; |
||||
this.toolStripMenuItem1.Size = new System.Drawing.Size(152, 22); |
||||
this.toolStripMenuItem1.Text = "Serial Options"; |
||||
// |
||||
// toolStripMenuItem4 |
||||
// |
||||
this.toolStripMenuItem4.Name = "toolStripMenuItem4"; |
||||
this.toolStripMenuItem4.Size = new System.Drawing.Size(253, 22); |
||||
this.toolStripMenuItem4.Text = "Baud Rate"; |
||||
// |
||||
// toolStripMenuItem2 |
||||
// |
||||
this.toolStripMenuItem2.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { |
||||
this.toolStripMenuItem5, |
||||
this.tcpport}); |
||||
this.toolStripMenuItem2.Name = "toolStripMenuItem2"; |
||||
this.toolStripMenuItem2.Size = new System.Drawing.Size(152, 22); |
||||
this.toolStripMenuItem2.Text = "TCP Options"; |
||||
// |
||||
// toolStripMenuItem5 |
||||
// |
||||
this.toolStripMenuItem5.Name = "toolStripMenuItem5"; |
||||
this.toolStripMenuItem5.Size = new System.Drawing.Size(160, 22); |
||||
this.toolStripMenuItem5.Text = "TCP Port"; |
||||
// |
||||
// convertCRLF |
||||
// |
||||
this.convertCRLF.Name = "convertCRLF"; |
||||
this.convertCRLF.Size = new System.Drawing.Size(253, 22); |
||||
this.convertCRLF.Text = "Convert CR LF to nil"; |
||||
this.convertCRLF.Click += new System.EventHandler(this.toolStripMenuItem3_Click); |
||||
// |
||||
// Form1 |
||||
// |
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); |
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
||||
this.ClientSize = new System.Drawing.Size(405, 252); |
||||
this.Controls.Add(this.statusStrip1); |
||||
this.Controls.Add(this.menuStrip1); |
||||
this.Controls.Add(this.ConnectComPort); |
||||
this.Controls.Add(this.outputlog); |
||||
this.MainMenuStrip = this.menuStrip1; |
||||
this.Name = "Form1"; |
||||
this.Text = "SerialProxy by Michael Oborne"; |
||||
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Form1_FormClosing); |
||||
this.statusStrip1.ResumeLayout(false); |
||||
this.statusStrip1.PerformLayout(); |
||||
this.menuStrip1.ResumeLayout(false); |
||||
this.menuStrip1.PerformLayout(); |
||||
this.ResumeLayout(false); |
||||
this.PerformLayout(); |
||||
|
||||
} |
||||
|
||||
#endregion |
||||
|
||||
private System.Windows.Forms.Button ConnectComPort; |
||||
private System.Windows.Forms.ToolStripTextBox tcpport; |
||||
private System.Windows.Forms.RichTextBox outputlog; |
||||
private System.Windows.Forms.StatusStrip statusStrip1; |
||||
private System.Windows.Forms.ToolStripStatusLabel StatusCom; |
||||
private System.Windows.Forms.ToolStripStatusLabel StatusTCP; |
||||
private System.Windows.Forms.MenuStrip menuStrip1; |
||||
private System.Windows.Forms.ToolStripMenuItem optionsToolStripMenuItem; |
||||
private System.Windows.Forms.ToolStripComboBox Comports; |
||||
private System.Windows.Forms.ToolStripComboBox baudrate; |
||||
private System.Windows.Forms.ToolStripMenuItem CHK_reset; |
||||
private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem1; |
||||
private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem2; |
||||
private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem4; |
||||
private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem5; |
||||
private System.Windows.Forms.ToolStripMenuItem convertCRLF; |
||||
} |
||||
} |
||||
|
||||
namespace SerialProxy |
||||
{ |
||||
partial class Form1 |
||||
{ |
||||
/// <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 Windows Form 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.CHK_reset = new System.Windows.Forms.ToolStripMenuItem(); |
||||
this.baudrate = new System.Windows.Forms.ToolStripComboBox(); |
||||
this.Comports = new System.Windows.Forms.ToolStripComboBox(); |
||||
this.ConnectComPort = new System.Windows.Forms.Button(); |
||||
this.tcpport = new System.Windows.Forms.ToolStripTextBox(); |
||||
this.outputlog = new System.Windows.Forms.RichTextBox(); |
||||
this.statusStrip1 = new System.Windows.Forms.StatusStrip(); |
||||
this.StatusCom = new System.Windows.Forms.ToolStripStatusLabel(); |
||||
this.StatusTCP = new System.Windows.Forms.ToolStripStatusLabel(); |
||||
this.menuStrip1 = new System.Windows.Forms.MenuStrip(); |
||||
this.optionsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); |
||||
this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); |
||||
this.toolStripMenuItem4 = new System.Windows.Forms.ToolStripMenuItem(); |
||||
this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripMenuItem(); |
||||
this.toolStripMenuItem5 = new System.Windows.Forms.ToolStripMenuItem(); |
||||
this.convertCRLF = new System.Windows.Forms.ToolStripMenuItem(); |
||||
this.statusStrip1.SuspendLayout(); |
||||
this.menuStrip1.SuspendLayout(); |
||||
this.SuspendLayout(); |
||||
// |
||||
// CHK_reset |
||||
// |
||||
this.CHK_reset.Checked = true; |
||||
this.CHK_reset.CheckState = System.Windows.Forms.CheckState.Checked; |
||||
this.CHK_reset.Name = "CHK_reset"; |
||||
this.CHK_reset.Size = new System.Drawing.Size(276, 22); |
||||
this.CHK_reset.Text = "Reset Arduino on first new connection"; |
||||
this.CHK_reset.Click += new System.EventHandler(this.CHK_reset_Click); |
||||
// |
||||
// baudrate |
||||
// |
||||
this.baudrate.Items.AddRange(new object[] { |
||||
"2400", |
||||
"4800", |
||||
"9600", |
||||
"19200", |
||||
"38400", |
||||
"57600", |
||||
"115200 "}); |
||||
this.baudrate.Name = "baudrate"; |
||||
this.baudrate.Size = new System.Drawing.Size(121, 23); |
||||
this.baudrate.Text = "38400"; |
||||
// |
||||
// Comports |
||||
// |
||||
this.Comports.Name = "Comports"; |
||||
this.Comports.Size = new System.Drawing.Size(121, 23); |
||||
this.Comports.Text = "Com Port"; |
||||
this.Comports.SelectedIndexChanged += new System.EventHandler(this.Comports_SelectedIndexChanged); |
||||
this.Comports.Click += new System.EventHandler(this.Comports_Click); |
||||
// |
||||
// ConnectComPort |
||||
// |
||||
this.ConnectComPort.Location = new System.Drawing.Point(12, 27); |
||||
this.ConnectComPort.Name = "ConnectComPort"; |
||||
this.ConnectComPort.Size = new System.Drawing.Size(128, 23); |
||||
this.ConnectComPort.TabIndex = 5; |
||||
this.ConnectComPort.Text = "Connect"; |
||||
this.ConnectComPort.UseVisualStyleBackColor = true; |
||||
this.ConnectComPort.Click += new System.EventHandler(this.ConnectComPort_Click); |
||||
// |
||||
// tcpport |
||||
// |
||||
this.tcpport.Name = "tcpport"; |
||||
this.tcpport.Size = new System.Drawing.Size(100, 23); |
||||
this.tcpport.Text = "5001"; |
||||
// |
||||
// outputlog |
||||
// |
||||
this.outputlog.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.outputlog.Location = new System.Drawing.Point(13, 56); |
||||
this.outputlog.Name = "outputlog"; |
||||
this.outputlog.ReadOnly = true; |
||||
this.outputlog.Size = new System.Drawing.Size(379, 171); |
||||
this.outputlog.TabIndex = 31; |
||||
this.outputlog.Text = ""; |
||||
this.outputlog.TextChanged += new System.EventHandler(this.outputlog_TextChanged); |
||||
// |
||||
// statusStrip1 |
||||
// |
||||
this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { |
||||
this.StatusCom, |
||||
this.StatusTCP}); |
||||
this.statusStrip1.Location = new System.Drawing.Point(0, 230); |
||||
this.statusStrip1.Name = "statusStrip1"; |
||||
this.statusStrip1.Size = new System.Drawing.Size(405, 22); |
||||
this.statusStrip1.TabIndex = 32; |
||||
this.statusStrip1.Text = "statusStrip1"; |
||||
// |
||||
// StatusCom |
||||
// |
||||
this.StatusCom.Name = "StatusCom"; |
||||
this.StatusCom.Size = new System.Drawing.Size(108, 17); |
||||
this.StatusCom.Text = "Com Disconnected"; |
||||
// |
||||
// StatusTCP |
||||
// |
||||
this.StatusTCP.Name = "StatusTCP"; |
||||
this.StatusTCP.Size = new System.Drawing.Size(104, 17); |
||||
this.StatusTCP.Text = "TCP Disconnected"; |
||||
// |
||||
// menuStrip1 |
||||
// |
||||
this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { |
||||
this.optionsToolStripMenuItem}); |
||||
this.menuStrip1.Location = new System.Drawing.Point(0, 0); |
||||
this.menuStrip1.Name = "menuStrip1"; |
||||
this.menuStrip1.Size = new System.Drawing.Size(405, 24); |
||||
this.menuStrip1.TabIndex = 33; |
||||
this.menuStrip1.Text = "menuStrip1"; |
||||
// |
||||
// optionsToolStripMenuItem |
||||
// |
||||
this.optionsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { |
||||
this.toolStripMenuItem1, |
||||
this.toolStripMenuItem2}); |
||||
this.optionsToolStripMenuItem.Name = "optionsToolStripMenuItem"; |
||||
this.optionsToolStripMenuItem.Size = new System.Drawing.Size(61, 20); |
||||
this.optionsToolStripMenuItem.Text = "Options"; |
||||
// |
||||
// toolStripMenuItem1 |
||||
// |
||||
this.toolStripMenuItem1.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { |
||||
this.Comports, |
||||
this.toolStripMenuItem4, |
||||
this.baudrate, |
||||
this.CHK_reset, |
||||
this.convertCRLF}); |
||||
this.toolStripMenuItem1.Name = "toolStripMenuItem1"; |
||||
this.toolStripMenuItem1.Size = new System.Drawing.Size(152, 22); |
||||
this.toolStripMenuItem1.Text = "Serial Options"; |
||||
// |
||||
// toolStripMenuItem4 |
||||
// |
||||
this.toolStripMenuItem4.Name = "toolStripMenuItem4"; |
||||
this.toolStripMenuItem4.Size = new System.Drawing.Size(253, 22); |
||||
this.toolStripMenuItem4.Text = "Baud Rate"; |
||||
// |
||||
// toolStripMenuItem2 |
||||
// |
||||
this.toolStripMenuItem2.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { |
||||
this.toolStripMenuItem5, |
||||
this.tcpport}); |
||||
this.toolStripMenuItem2.Name = "toolStripMenuItem2"; |
||||
this.toolStripMenuItem2.Size = new System.Drawing.Size(152, 22); |
||||
this.toolStripMenuItem2.Text = "TCP Options"; |
||||
// |
||||
// toolStripMenuItem5 |
||||
// |
||||
this.toolStripMenuItem5.Name = "toolStripMenuItem5"; |
||||
this.toolStripMenuItem5.Size = new System.Drawing.Size(160, 22); |
||||
this.toolStripMenuItem5.Text = "TCP Port"; |
||||
// |
||||
// convertCRLF |
||||
// |
||||
this.convertCRLF.Name = "convertCRLF"; |
||||
this.convertCRLF.Size = new System.Drawing.Size(253, 22); |
||||
this.convertCRLF.Text = "Convert CR LF to nil"; |
||||
this.convertCRLF.Click += new System.EventHandler(this.toolStripMenuItem3_Click); |
||||
// |
||||
// Form1 |
||||
// |
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); |
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
||||
this.ClientSize = new System.Drawing.Size(405, 252); |
||||
this.Controls.Add(this.statusStrip1); |
||||
this.Controls.Add(this.menuStrip1); |
||||
this.Controls.Add(this.ConnectComPort); |
||||
this.Controls.Add(this.outputlog); |
||||
this.MainMenuStrip = this.menuStrip1; |
||||
this.Name = "Form1"; |
||||
this.Text = "SerialProxy by Michael Oborne"; |
||||
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Form1_FormClosing); |
||||
this.statusStrip1.ResumeLayout(false); |
||||
this.statusStrip1.PerformLayout(); |
||||
this.menuStrip1.ResumeLayout(false); |
||||
this.menuStrip1.PerformLayout(); |
||||
this.ResumeLayout(false); |
||||
this.PerformLayout(); |
||||
|
||||
} |
||||
|
||||
#endregion |
||||
|
||||
private System.Windows.Forms.Button ConnectComPort; |
||||
private System.Windows.Forms.ToolStripTextBox tcpport; |
||||
private System.Windows.Forms.RichTextBox outputlog; |
||||
private System.Windows.Forms.StatusStrip statusStrip1; |
||||
private System.Windows.Forms.ToolStripStatusLabel StatusCom; |
||||
private System.Windows.Forms.ToolStripStatusLabel StatusTCP; |
||||
private System.Windows.Forms.MenuStrip menuStrip1; |
||||
private System.Windows.Forms.ToolStripMenuItem optionsToolStripMenuItem; |
||||
private System.Windows.Forms.ToolStripComboBox Comports; |
||||
private System.Windows.Forms.ToolStripComboBox baudrate; |
||||
private System.Windows.Forms.ToolStripMenuItem CHK_reset; |
||||
private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem1; |
||||
private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem2; |
||||
private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem4; |
||||
private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem5; |
||||
private System.Windows.Forms.ToolStripMenuItem convertCRLF; |
||||
} |
||||
} |
||||
|
||||
|
@ -1,260 +1,260 @@
@@ -1,260 +1,260 @@
|
||||
using System; |
||||
using System.Collections.Generic; |
||||
using System.ComponentModel; |
||||
using System.Data; |
||||
using System.Drawing; |
||||
using System.Text; |
||||
using System.Windows.Forms; |
||||
using System.IO.Ports; |
||||
using System.Net; |
||||
using System.Net.Sockets; |
||||
using System.Text.RegularExpressions; |
||||
|
||||
namespace SerialProxy |
||||
{ |
||||
public partial class Form1 : Form |
||||
{ |
||||
static SerialPort comPort = new SerialPort(); |
||||
static int runthreads = 0; |
||||
static TcpListener listener; |
||||
static List<NetworkStream> clients = new List<NetworkStream>(); |
||||
|
||||
public Form1() |
||||
{ |
||||
InitializeComponent(); |
||||
|
||||
Control.CheckForIllegalCrossThreadCalls = false; // so can update display from another thread |
||||
|
||||
Comports.Items.AddRange(SerialPort.GetPortNames()); |
||||
if (Comports.Items.Count > 0) |
||||
{ |
||||
Comports.SelectedIndex = 0; |
||||
} |
||||
} |
||||
|
||||
private void ConnectComPort_Click(object sender, EventArgs e) |
||||
{ |
||||
if (!comPort.IsOpen) |
||||
{ |
||||
outputlog.Clear(); |
||||
outputlog.ClearUndo(); |
||||
|
||||
comPort.BaudRate = int.Parse(baudrate.Text.ToString()); |
||||
comPort.DataBits = 8; |
||||
comPort.StopBits = (StopBits)Enum.Parse(typeof(StopBits), "1"); |
||||
comPort.Parity = (Parity)Enum.Parse(typeof(Parity), "None"); |
||||
|
||||
try |
||||
{ |
||||
comPort.PortName = Comports.Text.ToString(); |
||||
comPort.DtrEnable = false; // dont reset yet |
||||
comPort.Open(); |
||||
StatusCom.Text = "Com Connected"; |
||||
ConnectComPort.Text = "Disconnect"; |
||||
} |
||||
catch (Exception) { outputlog.AppendText("Cant open serial port\r\n"); return; } |
||||
|
||||
try |
||||
{ |
||||
|
||||
listener = new TcpListener(IPAddress.Any, int.Parse(tcpport.Text.ToString())); |
||||
|
||||
|
||||
StatusTCP.Text = "TCP Waiting"; |
||||
|
||||
runthreads = 1; |
||||
|
||||
System.Threading.Thread t11 = new System.Threading.Thread(delegate() { try { mainloop(); } catch (Exception) { } }); // process serial data and send to clients |
||||
t11.Start(); |
||||
|
||||
System.Threading.Thread t12 = new System.Threading.Thread(delegate() { try { listernforclients(); } catch (Exception) { } }); // wait for tcp connections |
||||
t12.Start(); |
||||
|
||||
|
||||
} |
||||
catch (SocketException ex) |
||||
{ |
||||
outputlog.AppendText("SocketException: " + ex+ "\n"); |
||||
} |
||||
finally |
||||
{ |
||||
// Stop listening for new clients. |
||||
listener.Stop(); |
||||
} |
||||
|
||||
} |
||||
else |
||||
{ |
||||
runthreads = 0; |
||||
System.Threading.Thread.Sleep(100); // make sure thread closes |
||||
comPort.Close(); |
||||
StatusCom.Text = "Com Disconnected"; |
||||
ConnectComPort.Text = "Connect"; |
||||
foreach (NetworkStream client in clients) |
||||
{ |
||||
try |
||||
{ |
||||
client.Close(); |
||||
} |
||||
catch (Exception) |
||||
{ |
||||
} |
||||
} |
||||
clients.Clear(); |
||||
StatusTCP.Text = "TCP Disconnected"; |
||||
} |
||||
} |
||||
|
||||
void listernforclients() |
||||
{ |
||||
listener.Start(); |
||||
// Enter the listening loop. |
||||
|
||||
while (runthreads == 1) |
||||
{ |
||||
|
||||
// Perform a blocking call to accept requests. |
||||
// You could also user server.AcceptSocket() here. |
||||
TcpClient client = listener.AcceptTcpClient(); |
||||
StatusTCP.Text = "TCP " + (clients.Count +1) + " Clients"; |
||||
|
||||
comPort.DtrEnable = CHK_reset.Checked; |
||||
|
||||
// Get a stream object for reading and writing |
||||
NetworkStream stream = client.GetStream(); |
||||
|
||||
clients.Add(stream); |
||||
|
||||
System.Threading.Thread.Sleep(100); |
||||
|
||||
} |
||||
} |
||||
|
||||
void mainloop() |
||||
{ |
||||
System.Text.ASCIIEncoding encoding = new System.Text.ASCIIEncoding(); |
||||
List<NetworkStream> clientscopy = new List<NetworkStream>(clients); |
||||
byte[] data = new byte[1024 * 4]; |
||||
|
||||
while (runthreads == 1) |
||||
{ |
||||
System.Threading.Thread.Sleep(1); |
||||
// do serial |
||||
if (comPort.BytesToRead > 0) |
||||
{ |
||||
string line = comPort.ReadExisting(); |
||||
|
||||
if (convertCRLF.Checked) |
||||
{ |
||||
Regex regex = new Regex("\r\n", RegexOptions.IgnoreCase); |
||||
|
||||
line = regex.Replace(line, "\0"); |
||||
} |
||||
|
||||
outputlog.AppendText(line); |
||||
|
||||
clientscopy = new List<NetworkStream>(clients); |
||||
|
||||
foreach (NetworkStream client in clientscopy) |
||||
{ |
||||
byte[] temp = encoding.GetBytes(line); |
||||
try |
||||
{ |
||||
client.Write(temp, 0, temp.Length); |
||||
} |
||||
catch (Exception) |
||||
{ |
||||
clients.Remove(client); |
||||
StatusTCP.Text = "TCP " + clients.Count + " Clients"; |
||||
} |
||||
} |
||||
} |
||||
// do tcp |
||||
clientscopy = new List<NetworkStream>(clients); |
||||
|
||||
foreach (NetworkStream client in clientscopy) |
||||
{ |
||||
//byte[] temp = encoding.GetBytes(data); |
||||
if (client.DataAvailable) |
||||
{ |
||||
try |
||||
{ |
||||
int size = client.Read(data, 0, data.Length); |
||||
comPort.Write(data, 0, size); |
||||
} |
||||
catch (Exception) |
||||
{ |
||||
clients.Remove(client); |
||||
StatusTCP.Text = "TCP " + clients.Count + " Clients"; |
||||
} |
||||
} |
||||
} |
||||
|
||||
} |
||||
} |
||||
|
||||
private void Comports_SelectedIndexChanged(object sender, EventArgs e) |
||||
{ |
||||
|
||||
} |
||||
|
||||
private void Comports_Click(object sender, EventArgs e) |
||||
{ |
||||
Comports.Items.Clear(); |
||||
Comports.Items.AddRange(SerialPort.GetPortNames()); |
||||
} |
||||
|
||||
private void Form1_FormClosing(object sender, FormClosingEventArgs e) |
||||
{ |
||||
runthreads = 0; |
||||
System.Threading.Thread.Sleep(100); |
||||
if (comPort.IsOpen) |
||||
comPort.Close(); |
||||
try |
||||
{ |
||||
listener.Stop(); |
||||
} |
||||
catch (Exception) { } |
||||
} |
||||
|
||||
private void CHK_reset_Click(object sender, EventArgs e) |
||||
{ |
||||
if (CHK_reset.Checked) |
||||
{ |
||||
CHK_reset.Checked = false; |
||||
} |
||||
else |
||||
{ |
||||
CHK_reset.Checked = true; |
||||
} |
||||
} |
||||
|
||||
private void toolStripMenuItem3_Click(object sender, EventArgs e) |
||||
{ |
||||
if (convertCRLF.Checked) |
||||
{ |
||||
convertCRLF.Checked = false; |
||||
} |
||||
else |
||||
{ |
||||
convertCRLF.Checked = true; |
||||
} |
||||
} |
||||
|
||||
private void outputlog_TextChanged(object sender, EventArgs e) |
||||
{ |
||||
|
||||
if (outputlog.Text.Length > 10000) |
||||
{ |
||||
outputlog.Text = outputlog.Text.Remove(0, 5000); // half size |
||||
} |
||||
|
||||
// auto scroll |
||||
outputlog.SelectionStart = outputlog.Text.Length; |
||||
|
||||
outputlog.ScrollToCaret(); |
||||
|
||||
outputlog.Refresh(); |
||||
} |
||||
} |
||||
} |
||||
using System; |
||||
using System.Collections.Generic; |
||||
using System.ComponentModel; |
||||
using System.Data; |
||||
using System.Drawing; |
||||
using System.Text; |
||||
using System.Windows.Forms; |
||||
using System.IO.Ports; |
||||
using System.Net; |
||||
using System.Net.Sockets; |
||||
using System.Text.RegularExpressions; |
||||
|
||||
namespace SerialProxy |
||||
{ |
||||
public partial class Form1 : Form |
||||
{ |
||||
static SerialPort comPort = new SerialPort(); |
||||
static int runthreads = 0; |
||||
static TcpListener listener; |
||||
static List<NetworkStream> clients = new List<NetworkStream>(); |
||||
|
||||
public Form1() |
||||
{ |
||||
InitializeComponent(); |
||||
|
||||
Control.CheckForIllegalCrossThreadCalls = false; // so can update display from another thread |
||||
|
||||
Comports.Items.AddRange(SerialPort.GetPortNames()); |
||||
if (Comports.Items.Count > 0) |
||||
{ |
||||
Comports.SelectedIndex = 0; |
||||
} |
||||
} |
||||
|
||||
private void ConnectComPort_Click(object sender, EventArgs e) |
||||
{ |
||||
if (!comPort.IsOpen) |
||||
{ |
||||
outputlog.Clear(); |
||||
outputlog.ClearUndo(); |
||||
|
||||
comPort.BaudRate = int.Parse(baudrate.Text.ToString()); |
||||
comPort.DataBits = 8; |
||||
comPort.StopBits = (StopBits)Enum.Parse(typeof(StopBits), "1"); |
||||
comPort.Parity = (Parity)Enum.Parse(typeof(Parity), "None"); |
||||
|
||||
try |
||||
{ |
||||
comPort.PortName = Comports.Text.ToString(); |
||||
comPort.DtrEnable = false; // dont reset yet |
||||
comPort.Open(); |
||||
StatusCom.Text = "Com Connected"; |
||||
ConnectComPort.Text = "Disconnect"; |
||||
} |
||||
catch (Exception) { outputlog.AppendText("Cant open serial port\r\n"); return; } |
||||
|
||||
try |
||||
{ |
||||
|
||||
listener = new TcpListener(IPAddress.Any, int.Parse(tcpport.Text.ToString())); |
||||
|
||||
|
||||
StatusTCP.Text = "TCP Waiting"; |
||||
|
||||
runthreads = 1; |
||||
|
||||
System.Threading.Thread t11 = new System.Threading.Thread(delegate() { try { mainloop(); } catch (Exception) { } }); // process serial data and send to clients |
||||
t11.Start(); |
||||
|
||||
System.Threading.Thread t12 = new System.Threading.Thread(delegate() { try { listernforclients(); } catch (Exception) { } }); // wait for tcp connections |
||||
t12.Start(); |
||||
|
||||
|
||||
} |
||||
catch (SocketException ex) |
||||
{ |
||||
outputlog.AppendText("SocketException: " + ex+ "\n"); |
||||
} |
||||
finally |
||||
{ |
||||
// Stop listening for new clients. |
||||
listener.Stop(); |
||||
} |
||||
|
||||
} |
||||
else |
||||
{ |
||||
runthreads = 0; |
||||
System.Threading.Thread.Sleep(100); // make sure thread closes |
||||
comPort.Close(); |
||||
StatusCom.Text = "Com Disconnected"; |
||||
ConnectComPort.Text = "Connect"; |
||||
foreach (NetworkStream client in clients) |
||||
{ |
||||
try |
||||
{ |
||||
client.Close(); |
||||
} |
||||
catch (Exception) |
||||
{ |
||||
} |
||||
} |
||||
clients.Clear(); |
||||
StatusTCP.Text = "TCP Disconnected"; |
||||
} |
||||
} |
||||
|
||||
void listernforclients() |
||||
{ |
||||
listener.Start(); |
||||
// Enter the listening loop. |
||||
|
||||
while (runthreads == 1) |
||||
{ |
||||
|
||||
// Perform a blocking call to accept requests. |
||||
// You could also user server.AcceptSocket() here. |
||||
TcpClient client = listener.AcceptTcpClient(); |
||||
StatusTCP.Text = "TCP " + (clients.Count +1) + " Clients"; |
||||
|
||||
comPort.DtrEnable = CHK_reset.Checked; |
||||
|
||||
// Get a stream object for reading and writing |
||||
NetworkStream stream = client.GetStream(); |
||||
|
||||
clients.Add(stream); |
||||
|
||||
System.Threading.Thread.Sleep(100); |
||||
|
||||
} |
||||
} |
||||
|
||||
void mainloop() |
||||
{ |
||||
System.Text.ASCIIEncoding encoding = new System.Text.ASCIIEncoding(); |
||||
List<NetworkStream> clientscopy = new List<NetworkStream>(clients); |
||||
byte[] data = new byte[1024 * 4]; |
||||
|
||||
while (runthreads == 1) |
||||
{ |
||||
System.Threading.Thread.Sleep(1); |
||||
// do serial |
||||
if (comPort.BytesToRead > 0) |
||||
{ |
||||
string line = comPort.ReadExisting(); |
||||
|
||||
if (convertCRLF.Checked) |
||||
{ |
||||
Regex regex = new Regex("\r\n", RegexOptions.IgnoreCase); |
||||
|
||||
line = regex.Replace(line, "\0"); |
||||
} |
||||
|
||||
outputlog.AppendText(line); |
||||
|
||||
clientscopy = new List<NetworkStream>(clients); |
||||
|
||||
foreach (NetworkStream client in clientscopy) |
||||
{ |
||||
byte[] temp = encoding.GetBytes(line); |
||||
try |
||||
{ |
||||
client.Write(temp, 0, temp.Length); |
||||
} |
||||
catch (Exception) |
||||
{ |
||||
clients.Remove(client); |
||||
StatusTCP.Text = "TCP " + clients.Count + " Clients"; |
||||
} |
||||
} |
||||
} |
||||
// do tcp |
||||
clientscopy = new List<NetworkStream>(clients); |
||||
|
||||
foreach (NetworkStream client in clientscopy) |
||||
{ |
||||
//byte[] temp = encoding.GetBytes(data); |
||||
if (client.DataAvailable) |
||||
{ |
||||
try |
||||
{ |
||||
int size = client.Read(data, 0, data.Length); |
||||
comPort.Write(data, 0, size); |
||||
} |
||||
catch (Exception) |
||||
{ |
||||
clients.Remove(client); |
||||
StatusTCP.Text = "TCP " + clients.Count + " Clients"; |
||||
} |
||||
} |
||||
} |
||||
|
||||
} |
||||
} |
||||
|
||||
private void Comports_SelectedIndexChanged(object sender, EventArgs e) |
||||
{ |
||||
|
||||
} |
||||
|
||||
private void Comports_Click(object sender, EventArgs e) |
||||
{ |
||||
Comports.Items.Clear(); |
||||
Comports.Items.AddRange(SerialPort.GetPortNames()); |
||||
} |
||||
|
||||
private void Form1_FormClosing(object sender, FormClosingEventArgs e) |
||||
{ |
||||
runthreads = 0; |
||||
System.Threading.Thread.Sleep(100); |
||||
if (comPort.IsOpen) |
||||
comPort.Close(); |
||||
try |
||||
{ |
||||
listener.Stop(); |
||||
} |
||||
catch (Exception) { } |
||||
} |
||||
|
||||
private void CHK_reset_Click(object sender, EventArgs e) |
||||
{ |
||||
if (CHK_reset.Checked) |
||||
{ |
||||
CHK_reset.Checked = false; |
||||
} |
||||
else |
||||
{ |
||||
CHK_reset.Checked = true; |
||||
} |
||||
} |
||||
|
||||
private void toolStripMenuItem3_Click(object sender, EventArgs e) |
||||
{ |
||||
if (convertCRLF.Checked) |
||||
{ |
||||
convertCRLF.Checked = false; |
||||
} |
||||
else |
||||
{ |
||||
convertCRLF.Checked = true; |
||||
} |
||||
} |
||||
|
||||
private void outputlog_TextChanged(object sender, EventArgs e) |
||||
{ |
||||
|
||||
if (outputlog.Text.Length > 10000) |
||||
{ |
||||
outputlog.Text = outputlog.Text.Remove(0, 5000); // half size |
||||
} |
||||
|
||||
// auto scroll |
||||
outputlog.SelectionStart = outputlog.Text.Length; |
||||
|
||||
outputlog.ScrollToCaret(); |
||||
|
||||
outputlog.Refresh(); |
||||
} |
||||
} |
||||
} |
||||
|
@ -1,126 +1,126 @@
@@ -1,126 +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="statusStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |
||||
<value>17, 17</value> |
||||
</metadata> |
||||
<metadata name="menuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |
||||
<value>133, 17</value> |
||||
</metadata> |
||||
<?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="statusStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |
||||
<value>17, 17</value> |
||||
</metadata> |
||||
<metadata name="menuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |
||||
<value>133, 17</value> |
||||
</metadata> |
||||
</root> |
@ -1,20 +1,20 @@
@@ -1,20 +1,20 @@
|
||||
using System; |
||||
using System.Collections.Generic; |
||||
using System.Windows.Forms; |
||||
|
||||
namespace SerialProxy |
||||
{ |
||||
static class Program |
||||
{ |
||||
/// <summary> |
||||
/// The main entry point for the application. |
||||
/// </summary> |
||||
[STAThread] |
||||
static void Main() |
||||
{ |
||||
Application.EnableVisualStyles(); |
||||
Application.SetCompatibleTextRenderingDefault(false); |
||||
Application.Run(new Form1()); |
||||
} |
||||
} |
||||
} |
||||
using System; |
||||
using System.Collections.Generic; |
||||
using System.Windows.Forms; |
||||
|
||||
namespace SerialProxy |
||||
{ |
||||
static class Program |
||||
{ |
||||
/// <summary> |
||||
/// The main entry point for the application. |
||||
/// </summary> |
||||
[STAThread] |
||||
static void Main() |
||||
{ |
||||
Application.EnableVisualStyles(); |
||||
Application.SetCompatibleTextRenderingDefault(false); |
||||
Application.Run(new Form1()); |
||||
} |
||||
} |
||||
} |
||||
|
@ -1,36 +1,36 @@
@@ -1,36 +1,36 @@
|
||||
using System.Reflection; |
||||
using System.Runtime.CompilerServices; |
||||
using System.Runtime.InteropServices; |
||||
|
||||
// General Information about an assembly is controlled through the following |
||||
// set of attributes. Change these attribute values to modify the information |
||||
// associated with an assembly. |
||||
[assembly: AssemblyTitle("SerialProxy")] |
||||
[assembly: AssemblyDescription("")] |
||||
[assembly: AssemblyConfiguration("")] |
||||
[assembly: AssemblyCompany("Microsoft")] |
||||
[assembly: AssemblyProduct("SerialProxy")] |
||||
[assembly: AssemblyCopyright("Copyright © Microsoft 2010")] |
||||
[assembly: AssemblyTrademark("")] |
||||
[assembly: AssemblyCulture("")] |
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible |
||||
// to COM components. If you need to access a type in this assembly from |
||||
// COM, set the ComVisible attribute to true on that type. |
||||
[assembly: ComVisible(false)] |
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM |
||||
[assembly: Guid("261ae7c6-ab75-4f17-9ea6-cf2794aa860c")] |
||||
|
||||
// Version information for an assembly consists of the following four values: |
||||
// |
||||
// Major Version |
||||
// Minor Version |
||||
// Build Number |
||||
// Revision |
||||
// |
||||
// You can specify all the values or you can default the Build and Revision Numbers |
||||
// by using the '*' as shown below: |
||||
// [assembly: AssemblyVersion("1.0.*")] |
||||
[assembly: AssemblyVersion("1.0.0.0")] |
||||
[assembly: AssemblyFileVersion("1.0.0.0")] |
||||
using System.Reflection; |
||||
using System.Runtime.CompilerServices; |
||||
using System.Runtime.InteropServices; |
||||
|
||||
// General Information about an assembly is controlled through the following |
||||
// set of attributes. Change these attribute values to modify the information |
||||
// associated with an assembly. |
||||
[assembly: AssemblyTitle("SerialProxy")] |
||||
[assembly: AssemblyDescription("")] |
||||
[assembly: AssemblyConfiguration("")] |
||||
[assembly: AssemblyCompany("Microsoft")] |
||||
[assembly: AssemblyProduct("SerialProxy")] |
||||
[assembly: AssemblyCopyright("Copyright © Microsoft 2010")] |
||||
[assembly: AssemblyTrademark("")] |
||||
[assembly: AssemblyCulture("")] |
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible |
||||
// to COM components. If you need to access a type in this assembly from |
||||
// COM, set the ComVisible attribute to true on that type. |
||||
[assembly: ComVisible(false)] |
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM |
||||
[assembly: Guid("261ae7c6-ab75-4f17-9ea6-cf2794aa860c")] |
||||
|
||||
// Version information for an assembly consists of the following four values: |
||||
// |
||||
// Major Version |
||||
// Minor Version |
||||
// Build Number |
||||
// Revision |
||||
// |
||||
// You can specify all the values or you can default the Build and Revision Numbers |
||||
// by using the '*' as shown below: |
||||
// [assembly: AssemblyVersion("1.0.*")] |
||||
[assembly: AssemblyVersion("1.0.0.0")] |
||||
[assembly: AssemblyFileVersion("1.0.0.0")] |
||||
|
@ -1,63 +1,63 @@
@@ -1,63 +1,63 @@
|
||||
//------------------------------------------------------------------------------ |
||||
// <auto-generated> |
||||
// This code was generated by a tool. |
||||
// Runtime Version:4.0.30319.1 |
||||
// |
||||
// Changes to this file may cause incorrect behavior and will be lost if |
||||
// the code is regenerated. |
||||
// </auto-generated> |
||||
//------------------------------------------------------------------------------ |
||||
|
||||
namespace SerialProxy.Properties { |
||||
using System; |
||||
|
||||
|
||||
/// <summary> |
||||
/// A strongly-typed resource class, for looking up localized strings, etc. |
||||
/// </summary> |
||||
// This class was auto-generated by the StronglyTypedResourceBuilder |
||||
// class via a tool like ResGen or Visual Studio. |
||||
// To add or remove a member, edit your .ResX file then rerun ResGen |
||||
// with the /str option, or rebuild your VS project. |
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] |
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] |
||||
internal class Resources { |
||||
|
||||
private static global::System.Resources.ResourceManager resourceMan; |
||||
|
||||
private static global::System.Globalization.CultureInfo resourceCulture; |
||||
|
||||
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] |
||||
internal Resources() { |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns the cached ResourceManager instance used by this class. |
||||
/// </summary> |
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] |
||||
internal static global::System.Resources.ResourceManager ResourceManager { |
||||
get { |
||||
if (object.ReferenceEquals(resourceMan, null)) { |
||||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("SerialProxy.Properties.Resources", typeof(Resources).Assembly); |
||||
resourceMan = temp; |
||||
} |
||||
return resourceMan; |
||||
} |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Overrides the current thread's CurrentUICulture property for all |
||||
/// resource lookups using this strongly typed resource class. |
||||
/// </summary> |
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] |
||||
internal static global::System.Globalization.CultureInfo Culture { |
||||
get { |
||||
return resourceCulture; |
||||
} |
||||
set { |
||||
resourceCulture = value; |
||||
} |
||||
} |
||||
} |
||||
} |
||||
//------------------------------------------------------------------------------ |
||||
// <auto-generated> |
||||
// This code was generated by a tool. |
||||
// Runtime Version:4.0.30319.1 |
||||
// |
||||
// Changes to this file may cause incorrect behavior and will be lost if |
||||
// the code is regenerated. |
||||
// </auto-generated> |
||||
//------------------------------------------------------------------------------ |
||||
|
||||
namespace SerialProxy.Properties { |
||||
using System; |
||||
|
||||
|
||||
/// <summary> |
||||
/// A strongly-typed resource class, for looking up localized strings, etc. |
||||
/// </summary> |
||||
// This class was auto-generated by the StronglyTypedResourceBuilder |
||||
// class via a tool like ResGen or Visual Studio. |
||||
// To add or remove a member, edit your .ResX file then rerun ResGen |
||||
// with the /str option, or rebuild your VS project. |
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] |
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] |
||||
internal class Resources { |
||||
|
||||
private static global::System.Resources.ResourceManager resourceMan; |
||||
|
||||
private static global::System.Globalization.CultureInfo resourceCulture; |
||||
|
||||
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] |
||||
internal Resources() { |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Returns the cached ResourceManager instance used by this class. |
||||
/// </summary> |
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] |
||||
internal static global::System.Resources.ResourceManager ResourceManager { |
||||
get { |
||||
if (object.ReferenceEquals(resourceMan, null)) { |
||||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("SerialProxy.Properties.Resources", typeof(Resources).Assembly); |
||||
resourceMan = temp; |
||||
} |
||||
return resourceMan; |
||||
} |
||||
} |
||||
|
||||
/// <summary> |
||||
/// Overrides the current thread's CurrentUICulture property for all |
||||
/// resource lookups using this strongly typed resource class. |
||||
/// </summary> |
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] |
||||
internal static global::System.Globalization.CultureInfo Culture { |
||||
get { |
||||
return resourceCulture; |
||||
} |
||||
set { |
||||
resourceCulture = value; |
||||
} |
||||
} |
||||
} |
||||
} |
||||
|
@ -1,117 +1,117 @@
@@ -1,117 +1,117 @@
|
||||
<?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.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: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" type="xsd:string" /> |
||||
<xsd:attribute name="type" type="xsd:string" /> |
||||
<xsd:attribute name="mimetype" type="xsd:string" /> |
||||
</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" msdata:Ordinal="1" /> |
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> |
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> |
||||
</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> |
||||
<?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.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: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" type="xsd:string" /> |
||||
<xsd:attribute name="type" type="xsd:string" /> |
||||
<xsd:attribute name="mimetype" type="xsd:string" /> |
||||
</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" msdata:Ordinal="1" /> |
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> |
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> |
||||
</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> |
||||
</root> |
@ -1,26 +1,26 @@
@@ -1,26 +1,26 @@
|
||||
//------------------------------------------------------------------------------ |
||||
// <auto-generated> |
||||
// This code was generated by a tool. |
||||
// Runtime Version:4.0.30319.1 |
||||
// |
||||
// Changes to this file may cause incorrect behavior and will be lost if |
||||
// the code is regenerated. |
||||
// </auto-generated> |
||||
//------------------------------------------------------------------------------ |
||||
|
||||
namespace SerialProxy.Properties { |
||||
|
||||
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] |
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")] |
||||
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { |
||||
|
||||
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); |
||||
|
||||
public static Settings Default { |
||||
get { |
||||
return defaultInstance; |
||||
} |
||||
} |
||||
} |
||||
} |
||||
//------------------------------------------------------------------------------ |
||||
// <auto-generated> |
||||
// This code was generated by a tool. |
||||
// Runtime Version:4.0.30319.1 |
||||
// |
||||
// Changes to this file may cause incorrect behavior and will be lost if |
||||
// the code is regenerated. |
||||
// </auto-generated> |
||||
//------------------------------------------------------------------------------ |
||||
|
||||
namespace SerialProxy.Properties { |
||||
|
||||
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] |
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")] |
||||
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { |
||||
|
||||
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); |
||||
|
||||
public static Settings Default { |
||||
get { |
||||
return defaultInstance; |
||||
} |
||||
} |
||||
} |
||||
} |
||||
|
@ -1,7 +1,7 @@
@@ -1,7 +1,7 @@
|
||||
<?xml version='1.0' encoding='utf-8'?> |
||||
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)"> |
||||
<Profiles> |
||||
<Profile Name="(Default)" /> |
||||
</Profiles> |
||||
<Settings /> |
||||
</SettingsFile> |
||||
<?xml version='1.0' encoding='utf-8'?> |
||||
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)"> |
||||
<Profiles> |
||||
<Profile Name="(Default)" /> |
||||
</Profiles> |
||||
<Settings /> |
||||
</SettingsFile> |
||||
|
@ -1,86 +1,86 @@
@@ -1,86 +1,86 @@
|
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
||||
<PropertyGroup> |
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> |
||||
<Platform Condition=" '$(Platform)' == '' ">x86</Platform> |
||||
<ProductVersion>8.0.30703</ProductVersion> |
||||
<SchemaVersion>2.0</SchemaVersion> |
||||
<ProjectGuid>{5337375B-6393-49B2-A544-B53AAFD1C4F9}</ProjectGuid> |
||||
<OutputType>WinExe</OutputType> |
||||
<AppDesignerFolder>Properties</AppDesignerFolder> |
||||
<RootNamespace>SerialProxy</RootNamespace> |
||||
<AssemblyName>SerialProxy</AssemblyName> |
||||
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion> |
||||
<TargetFrameworkProfile> |
||||
</TargetFrameworkProfile> |
||||
<FileAlignment>512</FileAlignment> |
||||
</PropertyGroup> |
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' "> |
||||
<PlatformTarget>x86</PlatformTarget> |
||||
<DebugSymbols>true</DebugSymbols> |
||||
<DebugType>full</DebugType> |
||||
<Optimize>false</Optimize> |
||||
<OutputPath>bin\Debug\</OutputPath> |
||||
<DefineConstants>DEBUG;TRACE</DefineConstants> |
||||
<ErrorReport>prompt</ErrorReport> |
||||
<WarningLevel>4</WarningLevel> |
||||
</PropertyGroup> |
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' "> |
||||
<PlatformTarget>x86</PlatformTarget> |
||||
<DebugType>pdbonly</DebugType> |
||||
<Optimize>true</Optimize> |
||||
<OutputPath>bin\Release\</OutputPath> |
||||
<DefineConstants>TRACE</DefineConstants> |
||||
<ErrorReport>prompt</ErrorReport> |
||||
<WarningLevel>4</WarningLevel> |
||||
</PropertyGroup> |
||||
<ItemGroup> |
||||
<Reference Include="System" /> |
||||
<Reference Include="System.Data" /> |
||||
<Reference Include="System.Deployment" /> |
||||
<Reference Include="System.Drawing" /> |
||||
<Reference Include="System.Windows.Forms" /> |
||||
<Reference Include="System.Xml" /> |
||||
</ItemGroup> |
||||
<ItemGroup> |
||||
<Compile Include="Form1.cs"> |
||||
<SubType>Form</SubType> |
||||
</Compile> |
||||
<Compile Include="Form1.Designer.cs"> |
||||
<DependentUpon>Form1.cs</DependentUpon> |
||||
</Compile> |
||||
<Compile Include="Program.cs" /> |
||||
<Compile Include="Properties\AssemblyInfo.cs" /> |
||||
<EmbeddedResource Include="Form1.resx"> |
||||
<DependentUpon>Form1.cs</DependentUpon> |
||||
</EmbeddedResource> |
||||
<EmbeddedResource Include="Properties\Resources.resx"> |
||||
<Generator>ResXFileCodeGenerator</Generator> |
||||
<LastGenOutput>Resources.Designer.cs</LastGenOutput> |
||||
<SubType>Designer</SubType> |
||||
</EmbeddedResource> |
||||
<Compile Include="Properties\Resources.Designer.cs"> |
||||
<AutoGen>True</AutoGen> |
||||
<DependentUpon>Resources.resx</DependentUpon> |
||||
<DesignTime>True</DesignTime> |
||||
</Compile> |
||||
<None Include="app.config" /> |
||||
<None Include="Properties\Settings.settings"> |
||||
<Generator>SettingsSingleFileGenerator</Generator> |
||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput> |
||||
</None> |
||||
<Compile Include="Properties\Settings.Designer.cs"> |
||||
<AutoGen>True</AutoGen> |
||||
<DependentUpon>Settings.settings</DependentUpon> |
||||
<DesignTimeSharedInput>True</DesignTimeSharedInput> |
||||
</Compile> |
||||
</ItemGroup> |
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> |
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. |
||||
Other similar extension points exist, see Microsoft.Common.targets. |
||||
<Target Name="BeforeBuild"> |
||||
</Target> |
||||
<Target Name="AfterBuild"> |
||||
</Target> |
||||
--> |
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
||||
<PropertyGroup> |
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> |
||||
<Platform Condition=" '$(Platform)' == '' ">x86</Platform> |
||||
<ProductVersion>8.0.30703</ProductVersion> |
||||
<SchemaVersion>2.0</SchemaVersion> |
||||
<ProjectGuid>{5337375B-6393-49B2-A544-B53AAFD1C4F9}</ProjectGuid> |
||||
<OutputType>WinExe</OutputType> |
||||
<AppDesignerFolder>Properties</AppDesignerFolder> |
||||
<RootNamespace>SerialProxy</RootNamespace> |
||||
<AssemblyName>SerialProxy</AssemblyName> |
||||
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion> |
||||
<TargetFrameworkProfile> |
||||
</TargetFrameworkProfile> |
||||
<FileAlignment>512</FileAlignment> |
||||
</PropertyGroup> |
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' "> |
||||
<PlatformTarget>x86</PlatformTarget> |
||||
<DebugSymbols>true</DebugSymbols> |
||||
<DebugType>full</DebugType> |
||||
<Optimize>false</Optimize> |
||||
<OutputPath>bin\Debug\</OutputPath> |
||||
<DefineConstants>DEBUG;TRACE</DefineConstants> |
||||
<ErrorReport>prompt</ErrorReport> |
||||
<WarningLevel>4</WarningLevel> |
||||
</PropertyGroup> |
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' "> |
||||
<PlatformTarget>x86</PlatformTarget> |
||||
<DebugType>pdbonly</DebugType> |
||||
<Optimize>true</Optimize> |
||||
<OutputPath>bin\Release\</OutputPath> |
||||
<DefineConstants>TRACE</DefineConstants> |
||||
<ErrorReport>prompt</ErrorReport> |
||||
<WarningLevel>4</WarningLevel> |
||||
</PropertyGroup> |
||||
<ItemGroup> |
||||
<Reference Include="System" /> |
||||
<Reference Include="System.Data" /> |
||||
<Reference Include="System.Deployment" /> |
||||
<Reference Include="System.Drawing" /> |
||||
<Reference Include="System.Windows.Forms" /> |
||||
<Reference Include="System.Xml" /> |
||||
</ItemGroup> |
||||
<ItemGroup> |
||||
<Compile Include="Form1.cs"> |
||||
<SubType>Form</SubType> |
||||
</Compile> |
||||
<Compile Include="Form1.Designer.cs"> |
||||
<DependentUpon>Form1.cs</DependentUpon> |
||||
</Compile> |
||||
<Compile Include="Program.cs" /> |
||||
<Compile Include="Properties\AssemblyInfo.cs" /> |
||||
<EmbeddedResource Include="Form1.resx"> |
||||
<DependentUpon>Form1.cs</DependentUpon> |
||||
</EmbeddedResource> |
||||
<EmbeddedResource Include="Properties\Resources.resx"> |
||||
<Generator>ResXFileCodeGenerator</Generator> |
||||
<LastGenOutput>Resources.Designer.cs</LastGenOutput> |
||||
<SubType>Designer</SubType> |
||||
</EmbeddedResource> |
||||
<Compile Include="Properties\Resources.Designer.cs"> |
||||
<AutoGen>True</AutoGen> |
||||
<DependentUpon>Resources.resx</DependentUpon> |
||||
<DesignTime>True</DesignTime> |
||||
</Compile> |
||||
<None Include="app.config" /> |
||||
<None Include="Properties\Settings.settings"> |
||||
<Generator>SettingsSingleFileGenerator</Generator> |
||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput> |
||||
</None> |
||||
<Compile Include="Properties\Settings.Designer.cs"> |
||||
<AutoGen>True</AutoGen> |
||||
<DependentUpon>Settings.settings</DependentUpon> |
||||
<DesignTimeSharedInput>True</DesignTimeSharedInput> |
||||
</Compile> |
||||
</ItemGroup> |
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> |
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. |
||||
Other similar extension points exist, see Microsoft.Common.targets. |
||||
<Target Name="BeforeBuild"> |
||||
</Target> |
||||
<Target Name="AfterBuild"> |
||||
</Target> |
||||
--> |
||||
</Project> |
@ -1,3 +1,3 @@
@@ -1,3 +1,3 @@
|
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
||||
</Project> |
@ -1,3 +1,3 @@
@@ -1,3 +1,3 @@
|
||||
<?xml version="1.0"?> |
||||
<configuration> |
||||
<startup><supportedRuntime version="v2.0.50727"/></startup></configuration> |
||||
<?xml version="1.0"?> |
||||
<configuration> |
||||
<startup><supportedRuntime version="v2.0.50727"/></startup></configuration> |
||||
|
@ -1,3 +1,3 @@
@@ -1,3 +1,3 @@
|
||||
<?xml version="1.0"?> |
||||
<configuration> |
||||
<startup><supportedRuntime version="v2.0.50727"/></startup></configuration> |
||||
<?xml version="1.0"?> |
||||
<configuration> |
||||
<startup><supportedRuntime version="v2.0.50727"/></startup></configuration> |
||||
|
Loading…
Reference in new issue