232 lines
12 KiB
C#
232 lines
12 KiB
C#
|
namespace Tetra_GW
|
|||
|
{
|
|||
|
partial class MainForm
|
|||
|
{
|
|||
|
/// <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.components = new System.ComponentModel.Container();
|
|||
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
|
|||
|
this.notifyIcon1 = new System.Windows.Forms.NotifyIcon(this.components);
|
|||
|
this.lbPortName = new Telerik.WinControls.UI.RadLabel();
|
|||
|
this.lbStatus = new Telerik.WinControls.UI.RadLabel();
|
|||
|
this.lbStatusVAL = new Telerik.WinControls.UI.RadLabel();
|
|||
|
this.btConect = new Telerik.WinControls.UI.RadButton();
|
|||
|
this.FindPortsWorker = new System.ComponentModel.BackgroundWorker();
|
|||
|
this.serialPort = new System.IO.Ports.SerialPort(this.components);
|
|||
|
this.breezeTheme1 = new Telerik.WinControls.Themes.BreezeTheme();
|
|||
|
this.radCBPorts = new Telerik.WinControls.UI.RadDropDownList();
|
|||
|
this.timer1 = new System.Windows.Forms.Timer(this.components);
|
|||
|
this.RestartTimer = new System.Windows.Forms.Timer(this.components);
|
|||
|
this.ckAutoconnect = new Telerik.WinControls.UI.RadCheckBox();
|
|||
|
this.telerikMetroBlueTheme2 = new Telerik.WinControls.Themes.TelerikMetroBlueTheme();
|
|||
|
this.lbUpdateVAL = new Telerik.WinControls.UI.RadLabel();
|
|||
|
this.lbUpdate = new Telerik.WinControls.UI.RadLabel();
|
|||
|
((System.ComponentModel.ISupportInitialize)(this.lbPortName)).BeginInit();
|
|||
|
((System.ComponentModel.ISupportInitialize)(this.lbStatus)).BeginInit();
|
|||
|
((System.ComponentModel.ISupportInitialize)(this.lbStatusVAL)).BeginInit();
|
|||
|
((System.ComponentModel.ISupportInitialize)(this.btConect)).BeginInit();
|
|||
|
((System.ComponentModel.ISupportInitialize)(this.radCBPorts)).BeginInit();
|
|||
|
((System.ComponentModel.ISupportInitialize)(this.ckAutoconnect)).BeginInit();
|
|||
|
((System.ComponentModel.ISupportInitialize)(this.lbUpdateVAL)).BeginInit();
|
|||
|
((System.ComponentModel.ISupportInitialize)(this.lbUpdate)).BeginInit();
|
|||
|
((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
|
|||
|
this.SuspendLayout();
|
|||
|
//
|
|||
|
// notifyIcon1
|
|||
|
//
|
|||
|
this.notifyIcon1.BalloonTipIcon = System.Windows.Forms.ToolTipIcon.Info;
|
|||
|
this.notifyIcon1.BalloonTipText = "Tetra gateway";
|
|||
|
this.notifyIcon1.BalloonTipTitle = "Gateway";
|
|||
|
this.notifyIcon1.Icon = ((System.Drawing.Icon)(resources.GetObject("notifyIcon1.Icon")));
|
|||
|
this.notifyIcon1.Text = "Tetra gateway";
|
|||
|
this.notifyIcon1.Visible = true;
|
|||
|
this.notifyIcon1.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.notifyIcon1_MouseDoubleClick);
|
|||
|
//
|
|||
|
// lbPortName
|
|||
|
//
|
|||
|
this.lbPortName.Location = new System.Drawing.Point(61, 12);
|
|||
|
this.lbPortName.Name = "lbPortName";
|
|||
|
this.lbPortName.Size = new System.Drawing.Size(60, 18);
|
|||
|
this.lbPortName.TabIndex = 0;
|
|||
|
this.lbPortName.Text = "Port name:";
|
|||
|
//
|
|||
|
// lbStatus
|
|||
|
//
|
|||
|
this.lbStatus.Location = new System.Drawing.Point(82, 45);
|
|||
|
this.lbStatus.Name = "lbStatus";
|
|||
|
this.lbStatus.Size = new System.Drawing.Size(39, 18);
|
|||
|
this.lbStatus.TabIndex = 3;
|
|||
|
this.lbStatus.Text = "Status:";
|
|||
|
//
|
|||
|
// lbStatusVAL
|
|||
|
//
|
|||
|
this.lbStatusVAL.ForeColor = System.Drawing.Color.Red;
|
|||
|
this.lbStatusVAL.Location = new System.Drawing.Point(139, 45);
|
|||
|
this.lbStatusVAL.Name = "lbStatusVAL";
|
|||
|
this.lbStatusVAL.Size = new System.Drawing.Size(93, 18);
|
|||
|
this.lbStatusVAL.TabIndex = 4;
|
|||
|
this.lbStatusVAL.Text = "Serial port closed";
|
|||
|
this.lbStatusVAL.ThemeName = "ControlDefault";
|
|||
|
//
|
|||
|
// btConect
|
|||
|
//
|
|||
|
this.btConect.Location = new System.Drawing.Point(126, 92);
|
|||
|
this.btConect.Name = "btConect";
|
|||
|
this.btConect.Size = new System.Drawing.Size(151, 24);
|
|||
|
this.btConect.TabIndex = 5;
|
|||
|
this.btConect.Text = "Connect";
|
|||
|
this.btConect.ThemeName = "TelerikMetroBlue";
|
|||
|
this.btConect.Click += new System.EventHandler(this.btConect_Click);
|
|||
|
//
|
|||
|
// FindPortsWorker
|
|||
|
//
|
|||
|
this.FindPortsWorker.DoWork += new System.ComponentModel.DoWorkEventHandler(this.FindPortsWorker_DoWork);
|
|||
|
this.FindPortsWorker.RunWorkerCompleted += new System.ComponentModel.RunWorkerCompletedEventHandler(this.FindPortsWorker_RunWorkerCompleted);
|
|||
|
//
|
|||
|
// serialPort
|
|||
|
//
|
|||
|
this.serialPort.BaudRate = 38400;
|
|||
|
this.serialPort.PortName = "COM43";
|
|||
|
this.serialPort.DataReceived += new System.IO.Ports.SerialDataReceivedEventHandler(this.serialPort_DataReceived);
|
|||
|
//
|
|||
|
// radCBPorts
|
|||
|
//
|
|||
|
this.radCBPorts.DropDownAnimationEasing = Telerik.WinControls.RadEasingType.Linear;
|
|||
|
this.radCBPorts.DropDownAnimationFrames = 4;
|
|||
|
this.radCBPorts.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDownList;
|
|||
|
this.radCBPorts.Location = new System.Drawing.Point(126, 12);
|
|||
|
this.radCBPorts.Name = "radCBPorts";
|
|||
|
this.radCBPorts.Size = new System.Drawing.Size(151, 24);
|
|||
|
this.radCBPorts.TabIndex = 6;
|
|||
|
this.radCBPorts.ThemeName = "TelerikMetroBlue";
|
|||
|
this.radCBPorts.SelectedIndexChanged += new Telerik.WinControls.UI.Data.PositionChangedEventHandler(this.radCBPorts_SelectedIndexChanged);
|
|||
|
//
|
|||
|
// timer1
|
|||
|
//
|
|||
|
this.timer1.Interval = 3000;
|
|||
|
this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
|
|||
|
//
|
|||
|
// RestartTimer
|
|||
|
//
|
|||
|
this.RestartTimer.Interval = 10800000;
|
|||
|
this.RestartTimer.Tick += new System.EventHandler(this.RestartTimer_Tick);
|
|||
|
//
|
|||
|
// ckAutoconnect
|
|||
|
//
|
|||
|
this.ckAutoconnect.Location = new System.Drawing.Point(28, 95);
|
|||
|
this.ckAutoconnect.Name = "ckAutoconnect";
|
|||
|
this.ckAutoconnect.Size = new System.Drawing.Size(93, 19);
|
|||
|
this.ckAutoconnect.TabIndex = 97;
|
|||
|
this.ckAutoconnect.Text = "Autoconnect";
|
|||
|
this.ckAutoconnect.ThemeName = "TelerikMetroBlue";
|
|||
|
this.ckAutoconnect.ToggleStateChanged += new Telerik.WinControls.UI.StateChangedEventHandler(this.ckAutoconnect_ToggleStateChanged);
|
|||
|
//
|
|||
|
// lbUpdateVAL
|
|||
|
//
|
|||
|
this.lbUpdateVAL.ForeColor = System.Drawing.Color.Red;
|
|||
|
this.lbUpdateVAL.Location = new System.Drawing.Point(139, 67);
|
|||
|
this.lbUpdateVAL.Name = "lbUpdateVAL";
|
|||
|
this.lbUpdateVAL.Size = new System.Drawing.Size(93, 18);
|
|||
|
this.lbUpdateVAL.TabIndex = 99;
|
|||
|
this.lbUpdateVAL.Text = "Serial port closed";
|
|||
|
this.lbUpdateVAL.ThemeName = "ControlDefault";
|
|||
|
//
|
|||
|
// lbUpdate
|
|||
|
//
|
|||
|
this.lbUpdate.Location = new System.Drawing.Point(54, 67);
|
|||
|
this.lbUpdate.Name = "lbUpdate";
|
|||
|
this.lbUpdate.Size = new System.Drawing.Size(67, 18);
|
|||
|
this.lbUpdate.TabIndex = 98;
|
|||
|
this.lbUpdate.Text = "Last update:";
|
|||
|
this.lbUpdate.TextAlignment = System.Drawing.ContentAlignment.MiddleRight;
|
|||
|
//
|
|||
|
// MainForm
|
|||
|
//
|
|||
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
|||
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|||
|
this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
|
|||
|
this.ClientSize = new System.Drawing.Size(342, 125);
|
|||
|
this.Controls.Add(this.lbUpdateVAL);
|
|||
|
this.Controls.Add(this.lbUpdate);
|
|||
|
this.Controls.Add(this.ckAutoconnect);
|
|||
|
this.Controls.Add(this.btConect);
|
|||
|
this.Controls.Add(this.lbStatusVAL);
|
|||
|
this.Controls.Add(this.lbStatus);
|
|||
|
this.Controls.Add(this.lbPortName);
|
|||
|
this.Controls.Add(this.radCBPorts);
|
|||
|
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
|
|||
|
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
|||
|
this.MaximizeBox = false;
|
|||
|
this.MaximumSize = new System.Drawing.Size(350, 160);
|
|||
|
this.MinimumSize = new System.Drawing.Size(350, 160);
|
|||
|
this.Name = "MainForm";
|
|||
|
//
|
|||
|
//
|
|||
|
//
|
|||
|
this.RootElement.ApplyShapeToControl = true;
|
|||
|
this.RootElement.MaxSize = new System.Drawing.Size(350, 160);
|
|||
|
this.Text = "Tetra gateway";
|
|||
|
this.ThemeName = "TelerikMetroBlue";
|
|||
|
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.MainForm_FormClosing);
|
|||
|
this.Load += new System.EventHandler(this.MainForm_Load);
|
|||
|
this.Shown += new System.EventHandler(this.MainForm_Shown);
|
|||
|
this.Resize += new System.EventHandler(this.MainForm_Resize);
|
|||
|
((System.ComponentModel.ISupportInitialize)(this.lbPortName)).EndInit();
|
|||
|
((System.ComponentModel.ISupportInitialize)(this.lbStatus)).EndInit();
|
|||
|
((System.ComponentModel.ISupportInitialize)(this.lbStatusVAL)).EndInit();
|
|||
|
((System.ComponentModel.ISupportInitialize)(this.btConect)).EndInit();
|
|||
|
((System.ComponentModel.ISupportInitialize)(this.radCBPorts)).EndInit();
|
|||
|
((System.ComponentModel.ISupportInitialize)(this.ckAutoconnect)).EndInit();
|
|||
|
((System.ComponentModel.ISupportInitialize)(this.lbUpdateVAL)).EndInit();
|
|||
|
((System.ComponentModel.ISupportInitialize)(this.lbUpdate)).EndInit();
|
|||
|
((System.ComponentModel.ISupportInitialize)(this)).EndInit();
|
|||
|
this.ResumeLayout(false);
|
|||
|
this.PerformLayout();
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
#endregion
|
|||
|
|
|||
|
private System.Windows.Forms.NotifyIcon notifyIcon1;
|
|||
|
private Telerik.WinControls.UI.RadLabel lbPortName;
|
|||
|
private Telerik.WinControls.UI.RadLabel lbStatus;
|
|||
|
private Telerik.WinControls.UI.RadLabel lbStatusVAL;
|
|||
|
private Telerik.WinControls.UI.RadButton btConect;
|
|||
|
private System.ComponentModel.BackgroundWorker FindPortsWorker;
|
|||
|
private volatile System.IO.Ports.SerialPort serialPort;
|
|||
|
private Telerik.WinControls.Themes.BreezeTheme breezeTheme1;
|
|||
|
private Telerik.WinControls.UI.RadDropDownList radCBPorts;
|
|||
|
private System.Windows.Forms.Timer timer1;
|
|||
|
private System.Windows.Forms.Timer RestartTimer;
|
|||
|
private Telerik.WinControls.UI.RadCheckBox ckAutoconnect;
|
|||
|
private Telerik.WinControls.Themes.TelerikMetroBlueTheme telerikMetroBlueTheme2;
|
|||
|
private Telerik.WinControls.UI.RadLabel lbUpdateVAL;
|
|||
|
private Telerik.WinControls.UI.RadLabel lbUpdate;
|
|||
|
}
|
|||
|
}
|
|||
|
|