mirror of
https://github.com/ClassicDIY/ModbusTool.git
synced 2026-10-19 06:20:52 +08:00
195 lines
6.9 KiB
C#
195 lines
6.9 KiB
C#
//------------------------------------------------------------------------------
|
|
// <auto-generated>
|
|
// This code was generated by a tool.
|
|
// Runtime Version:4.0.30319.42000
|
|
//
|
|
// Changes to this file may cause incorrect behavior and will be lost if
|
|
// the code is regenerated.
|
|
// </auto-generated>
|
|
//------------------------------------------------------------------------------
|
|
|
|
namespace Modbus.Common.Properties {
|
|
|
|
|
|
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "14.0.0.0")]
|
|
public 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;
|
|
}
|
|
}
|
|
|
|
[global::System.Configuration.UserScopedSettingAttribute()]
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.Configuration.DefaultSettingValueAttribute("TCP")]
|
|
public string CommunicationMode {
|
|
get {
|
|
return ((string)(this["CommunicationMode"]));
|
|
}
|
|
set {
|
|
this["CommunicationMode"] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Configuration.UserScopedSettingAttribute()]
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.Configuration.DefaultSettingValueAttribute("127.0.0.1")]
|
|
public string IPAddress {
|
|
get {
|
|
return ((string)(this["IPAddress"]));
|
|
}
|
|
set {
|
|
this["IPAddress"] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Configuration.UserScopedSettingAttribute()]
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.Configuration.DefaultSettingValueAttribute("502")]
|
|
public int TCPPort {
|
|
get {
|
|
return ((int)(this["TCPPort"]));
|
|
}
|
|
set {
|
|
this["TCPPort"] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Configuration.UserScopedSettingAttribute()]
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.Configuration.DefaultSettingValueAttribute("COM1")]
|
|
public string PortName {
|
|
get {
|
|
return ((string)(this["PortName"]));
|
|
}
|
|
set {
|
|
this["PortName"] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Configuration.UserScopedSettingAttribute()]
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.Configuration.DefaultSettingValueAttribute("9600")]
|
|
public int Baud {
|
|
get {
|
|
return ((int)(this["Baud"]));
|
|
}
|
|
set {
|
|
this["Baud"] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Configuration.UserScopedSettingAttribute()]
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.Configuration.DefaultSettingValueAttribute("None")]
|
|
public global::System.IO.Ports.Parity Parity {
|
|
get {
|
|
return ((global::System.IO.Ports.Parity)(this["Parity"]));
|
|
}
|
|
set {
|
|
this["Parity"] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Configuration.UserScopedSettingAttribute()]
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.Configuration.DefaultSettingValueAttribute("0")]
|
|
public ushort StartAddress {
|
|
get {
|
|
return ((ushort)(this["StartAddress"]));
|
|
}
|
|
set {
|
|
this["StartAddress"] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Configuration.UserScopedSettingAttribute()]
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.Configuration.DefaultSettingValueAttribute("64")]
|
|
public ushort DataLength {
|
|
get {
|
|
return ((ushort)(this["DataLength"]));
|
|
}
|
|
set {
|
|
this["DataLength"] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Configuration.UserScopedSettingAttribute()]
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.Configuration.DefaultSettingValueAttribute("1")]
|
|
public byte SlaveId {
|
|
get {
|
|
return ((byte)(this["SlaveId"]));
|
|
}
|
|
set {
|
|
this["SlaveId"] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Configuration.UserScopedSettingAttribute()]
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.Configuration.DefaultSettingValueAttribute("1")]
|
|
public int SlaveDelay {
|
|
get {
|
|
return ((int)(this["SlaveDelay"]));
|
|
}
|
|
set {
|
|
this["SlaveDelay"] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Configuration.UserScopedSettingAttribute()]
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.Configuration.DefaultSettingValueAttribute("8")]
|
|
public int DataBits {
|
|
get {
|
|
return ((int)(this["DataBits"]));
|
|
}
|
|
set {
|
|
this["DataBits"] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Configuration.UserScopedSettingAttribute()]
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.Configuration.DefaultSettingValueAttribute("One")]
|
|
public global::System.IO.Ports.StopBits StopBits {
|
|
get {
|
|
return ((global::System.IO.Ports.StopBits)(this["StopBits"]));
|
|
}
|
|
set {
|
|
this["StopBits"] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Configuration.UserScopedSettingAttribute()]
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.Configuration.DefaultSettingValueAttribute("Integer")]
|
|
public string DisplayFormat {
|
|
get {
|
|
return ((string)(this["DisplayFormat"]));
|
|
}
|
|
set {
|
|
this["DisplayFormat"] = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Configuration.UserScopedSettingAttribute()]
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.Configuration.DefaultSettingValueAttribute("0")]
|
|
public byte Function {
|
|
get {
|
|
return ((byte)(this["Function"]));
|
|
}
|
|
set {
|
|
this["Function"] = value;
|
|
}
|
|
}
|
|
}
|
|
}
|