From 58edd1415ae4681a2b4f3d7da1e908ca9511154e Mon Sep 17 00:00:00 2001 From: Kevin Hester Date: Tue, 15 Apr 2014 15:50:20 +0900 Subject: [PATCH] Tools Serial Proxy: fixup line endings --- Tools/SerialProxy/SerialProxy.sln | 40 +- .../SerialProxy/SerialProxy/Form1.Designer.cs | 470 ++++++++-------- Tools/SerialProxy/SerialProxy/Form1.cs | 520 +++++++++--------- Tools/SerialProxy/SerialProxy/Form1.resx | 250 ++++----- Tools/SerialProxy/SerialProxy/Program.cs | 40 +- .../SerialProxy/Properties/AssemblyInfo.cs | 72 +-- .../Properties/Resources.Designer.cs | 126 ++--- .../SerialProxy/Properties/Resources.resx | 232 ++++---- .../Properties/Settings.Designer.cs | 52 +- .../SerialProxy/Properties/Settings.settings | 14 +- .../SerialProxy/SerialProxy.csproj | 170 +++--- .../SerialProxy/SerialProxy.csproj.user | 4 +- Tools/SerialProxy/SerialProxy/app.config | 6 +- .../bin/Release/SerialProxy.exe.config | 6 +- 14 files changed, 1001 insertions(+), 1001 deletions(-) diff --git a/Tools/SerialProxy/SerialProxy.sln b/Tools/SerialProxy/SerialProxy.sln index 711cdb0079..3563da3105 100644 --- a/Tools/SerialProxy/SerialProxy.sln +++ b/Tools/SerialProxy/SerialProxy.sln @@ -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 diff --git a/Tools/SerialProxy/SerialProxy/Form1.Designer.cs b/Tools/SerialProxy/SerialProxy/Form1.Designer.cs index 2d3ea7c973..fbfbd46091 100644 --- a/Tools/SerialProxy/SerialProxy/Form1.Designer.cs +++ b/Tools/SerialProxy/SerialProxy/Form1.Designer.cs @@ -1,235 +1,235 @@ -namespace SerialProxy -{ - partial class Form1 - { - /// - /// Required designer variable. - /// - private System.ComponentModel.IContainer components = null; - - /// - /// Clean up any resources being used. - /// - /// true if managed resources should be disposed; otherwise, false. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Windows Form Designer generated code - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - 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 + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + 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; + } +} + diff --git a/Tools/SerialProxy/SerialProxy/Form1.cs b/Tools/SerialProxy/SerialProxy/Form1.cs index cb6fec80b8..65a1b131f0 100644 --- a/Tools/SerialProxy/SerialProxy/Form1.cs +++ b/Tools/SerialProxy/SerialProxy/Form1.cs @@ -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 clients = new List(); - - 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 clientscopy = new List(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(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(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 clients = new List(); + + 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 clientscopy = new List(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(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(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(); + } + } +} diff --git a/Tools/SerialProxy/SerialProxy/Form1.resx b/Tools/SerialProxy/SerialProxy/Form1.resx index b2fdf7aa60..2d5f00ff16 100644 --- a/Tools/SerialProxy/SerialProxy/Form1.resx +++ b/Tools/SerialProxy/SerialProxy/Form1.resx @@ -1,126 +1,126 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 17, 17 - - - 133, 17 - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 17, 17 + + + 133, 17 + \ No newline at end of file diff --git a/Tools/SerialProxy/SerialProxy/Program.cs b/Tools/SerialProxy/SerialProxy/Program.cs index e3b38640ec..f9853dd17c 100644 --- a/Tools/SerialProxy/SerialProxy/Program.cs +++ b/Tools/SerialProxy/SerialProxy/Program.cs @@ -1,20 +1,20 @@ -using System; -using System.Collections.Generic; -using System.Windows.Forms; - -namespace SerialProxy -{ - static class Program - { - /// - /// The main entry point for the application. - /// - [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 + { + /// + /// The main entry point for the application. + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new Form1()); + } + } +} diff --git a/Tools/SerialProxy/SerialProxy/Properties/AssemblyInfo.cs b/Tools/SerialProxy/SerialProxy/Properties/AssemblyInfo.cs index fd51da2474..a2ba0dabbc 100644 --- a/Tools/SerialProxy/SerialProxy/Properties/AssemblyInfo.cs +++ b/Tools/SerialProxy/SerialProxy/Properties/AssemblyInfo.cs @@ -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")] diff --git a/Tools/SerialProxy/SerialProxy/Properties/Resources.Designer.cs b/Tools/SerialProxy/SerialProxy/Properties/Resources.Designer.cs index 5b761fad72..997d3ed7b8 100644 --- a/Tools/SerialProxy/SerialProxy/Properties/Resources.Designer.cs +++ b/Tools/SerialProxy/SerialProxy/Properties/Resources.Designer.cs @@ -1,63 +1,63 @@ -//------------------------------------------------------------------------------ -// -// 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. -// -//------------------------------------------------------------------------------ - -namespace SerialProxy.Properties { - using System; - - - /// - /// A strongly-typed resource class, for looking up localized strings, etc. - /// - // 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() { - } - - /// - /// Returns the cached ResourceManager instance used by this class. - /// - [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; - } - } - - /// - /// Overrides the current thread's CurrentUICulture property for all - /// resource lookups using this strongly typed resource class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Globalization.CultureInfo Culture { - get { - return resourceCulture; - } - set { - resourceCulture = value; - } - } - } -} +//------------------------------------------------------------------------------ +// +// 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. +// +//------------------------------------------------------------------------------ + +namespace SerialProxy.Properties { + using System; + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // 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() { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [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; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + } +} diff --git a/Tools/SerialProxy/SerialProxy/Properties/Resources.resx b/Tools/SerialProxy/SerialProxy/Properties/Resources.resx index ffecec851a..af7dbebbac 100644 --- a/Tools/SerialProxy/SerialProxy/Properties/Resources.resx +++ b/Tools/SerialProxy/SerialProxy/Properties/Resources.resx @@ -1,117 +1,117 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + \ No newline at end of file diff --git a/Tools/SerialProxy/SerialProxy/Properties/Settings.Designer.cs b/Tools/SerialProxy/SerialProxy/Properties/Settings.Designer.cs index 4bd26d17d8..b421a4b5bd 100644 --- a/Tools/SerialProxy/SerialProxy/Properties/Settings.Designer.cs +++ b/Tools/SerialProxy/SerialProxy/Properties/Settings.Designer.cs @@ -1,26 +1,26 @@ -//------------------------------------------------------------------------------ -// -// 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. -// -//------------------------------------------------------------------------------ - -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; - } - } - } -} +//------------------------------------------------------------------------------ +// +// 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. +// +//------------------------------------------------------------------------------ + +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; + } + } + } +} diff --git a/Tools/SerialProxy/SerialProxy/Properties/Settings.settings b/Tools/SerialProxy/SerialProxy/Properties/Settings.settings index abf36c5d3d..39645652af 100644 --- a/Tools/SerialProxy/SerialProxy/Properties/Settings.settings +++ b/Tools/SerialProxy/SerialProxy/Properties/Settings.settings @@ -1,7 +1,7 @@ - - - - - - - + + + + + + + diff --git a/Tools/SerialProxy/SerialProxy/SerialProxy.csproj b/Tools/SerialProxy/SerialProxy/SerialProxy.csproj index 7fc9e9d593..624bc10d22 100644 --- a/Tools/SerialProxy/SerialProxy/SerialProxy.csproj +++ b/Tools/SerialProxy/SerialProxy/SerialProxy.csproj @@ -1,86 +1,86 @@ - - - - Debug - x86 - 8.0.30703 - 2.0 - {5337375B-6393-49B2-A544-B53AAFD1C4F9} - WinExe - Properties - SerialProxy - SerialProxy - v2.0 - - - 512 - - - x86 - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - x86 - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - - - - - - - - - Form - - - Form1.cs - - - - - Form1.cs - - - ResXFileCodeGenerator - Resources.Designer.cs - Designer - - - True - Resources.resx - True - - - - SettingsSingleFileGenerator - Settings.Designer.cs - - - True - Settings.settings - True - - - - + + + + Debug + x86 + 8.0.30703 + 2.0 + {5337375B-6393-49B2-A544-B53AAFD1C4F9} + WinExe + Properties + SerialProxy + SerialProxy + v2.0 + + + 512 + + + x86 + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + x86 + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + Form + + + Form1.cs + + + + + Form1.cs + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + True + + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + \ No newline at end of file diff --git a/Tools/SerialProxy/SerialProxy/SerialProxy.csproj.user b/Tools/SerialProxy/SerialProxy/SerialProxy.csproj.user index 695b5c78b9..ace9a86acb 100644 --- a/Tools/SerialProxy/SerialProxy/SerialProxy.csproj.user +++ b/Tools/SerialProxy/SerialProxy/SerialProxy.csproj.user @@ -1,3 +1,3 @@ - - + + \ No newline at end of file diff --git a/Tools/SerialProxy/SerialProxy/app.config b/Tools/SerialProxy/SerialProxy/app.config index 8494f728ff..e59af44de2 100644 --- a/Tools/SerialProxy/SerialProxy/app.config +++ b/Tools/SerialProxy/SerialProxy/app.config @@ -1,3 +1,3 @@ - - - + + + diff --git a/Tools/SerialProxy/SerialProxy/bin/Release/SerialProxy.exe.config b/Tools/SerialProxy/SerialProxy/bin/Release/SerialProxy.exe.config index 8494f728ff..e59af44de2 100644 --- a/Tools/SerialProxy/SerialProxy/bin/Release/SerialProxy.exe.config +++ b/Tools/SerialProxy/SerialProxy/bin/Release/SerialProxy.exe.config @@ -1,3 +1,3 @@ - - - + + +