|
@@ -28,9 +28,21 @@
|
|
|
/// </summary>
|
|
/// </summary>
|
|
|
private void InitializeComponent()
|
|
private void InitializeComponent()
|
|
|
{
|
|
{
|
|
|
|
|
+ this.components = new System.ComponentModel.Container();
|
|
|
|
|
+ System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormMain));
|
|
|
this.lblPLCCommState = new System.Windows.Forms.Label();
|
|
this.lblPLCCommState = new System.Windows.Forms.Label();
|
|
|
this.label55 = new System.Windows.Forms.Label();
|
|
this.label55 = new System.Windows.Forms.Label();
|
|
|
this.btnBit = new System.Windows.Forms.Button();
|
|
this.btnBit = new System.Windows.Forms.Button();
|
|
|
|
|
+ this.notifyIcon1 = new System.Windows.Forms.NotifyIcon(this.components);
|
|
|
|
|
+ this.contextMenuNotify = new System.Windows.Forms.ContextMenuStrip(this.components);
|
|
|
|
|
+ this.loggerHIDEToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
|
|
|
+ this.eXITToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
|
|
|
+ this.contextMenu = new System.Windows.Forms.ContextMenuStrip(this.components);
|
|
|
|
|
+ this.loggerHIDEToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
|
|
|
|
|
+ this.eXITToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
|
|
|
|
|
+ this.label57 = new System.Windows.Forms.Label();
|
|
|
|
|
+ this.contextMenuNotify.SuspendLayout();
|
|
|
|
|
+ this.contextMenu.SuspendLayout();
|
|
|
this.SuspendLayout();
|
|
this.SuspendLayout();
|
|
|
//
|
|
//
|
|
|
// lblPLCCommState
|
|
// lblPLCCommState
|
|
@@ -39,7 +51,7 @@
|
|
|
this.lblPLCCommState.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
|
this.lblPLCCommState.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
|
|
this.lblPLCCommState.Font = new System.Drawing.Font("Segoe UI Symbol", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.lblPLCCommState.Font = new System.Drawing.Font("Segoe UI Symbol", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
|
this.lblPLCCommState.ForeColor = System.Drawing.Color.Black;
|
|
this.lblPLCCommState.ForeColor = System.Drawing.Color.Black;
|
|
|
- this.lblPLCCommState.Location = new System.Drawing.Point(12, 34);
|
|
|
|
|
|
|
+ this.lblPLCCommState.Location = new System.Drawing.Point(12, 58);
|
|
|
this.lblPLCCommState.Name = "lblPLCCommState";
|
|
this.lblPLCCommState.Name = "lblPLCCommState";
|
|
|
this.lblPLCCommState.Padding = new System.Windows.Forms.Padding(5, 0, 0, 0);
|
|
this.lblPLCCommState.Padding = new System.Windows.Forms.Padding(5, 0, 0, 0);
|
|
|
this.lblPLCCommState.Size = new System.Drawing.Size(86, 30);
|
|
this.lblPLCCommState.Size = new System.Drawing.Size(86, 30);
|
|
@@ -53,7 +65,7 @@
|
|
|
this.label55.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
|
this.label55.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
|
|
this.label55.Font = new System.Drawing.Font("Segoe UI Symbol", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.label55.Font = new System.Drawing.Font("Segoe UI Symbol", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
|
this.label55.ForeColor = System.Drawing.Color.White;
|
|
this.label55.ForeColor = System.Drawing.Color.White;
|
|
|
- this.label55.Location = new System.Drawing.Point(12, 9);
|
|
|
|
|
|
|
+ this.label55.Location = new System.Drawing.Point(12, 33);
|
|
|
this.label55.Name = "label55";
|
|
this.label55.Name = "label55";
|
|
|
this.label55.Size = new System.Drawing.Size(86, 24);
|
|
this.label55.Size = new System.Drawing.Size(86, 24);
|
|
|
this.label55.TabIndex = 12;
|
|
this.label55.TabIndex = 12;
|
|
@@ -62,7 +74,7 @@
|
|
|
//
|
|
//
|
|
|
// btnBit
|
|
// btnBit
|
|
|
//
|
|
//
|
|
|
- this.btnBit.Location = new System.Drawing.Point(104, 12);
|
|
|
|
|
|
|
+ this.btnBit.Location = new System.Drawing.Point(104, 36);
|
|
|
this.btnBit.Name = "btnBit";
|
|
this.btnBit.Name = "btnBit";
|
|
|
this.btnBit.Size = new System.Drawing.Size(124, 48);
|
|
this.btnBit.Size = new System.Drawing.Size(124, 48);
|
|
|
this.btnBit.TabIndex = 13;
|
|
this.btnBit.TabIndex = 13;
|
|
@@ -70,18 +82,92 @@
|
|
|
this.btnBit.UseVisualStyleBackColor = true;
|
|
this.btnBit.UseVisualStyleBackColor = true;
|
|
|
this.btnBit.Click += new System.EventHandler(this.button1_Click);
|
|
this.btnBit.Click += new System.EventHandler(this.button1_Click);
|
|
|
//
|
|
//
|
|
|
|
|
+ // notifyIcon1
|
|
|
|
|
+ //
|
|
|
|
|
+ this.notifyIcon1.ContextMenuStrip = this.contextMenuNotify;
|
|
|
|
|
+ this.notifyIcon1.Icon = ((System.Drawing.Icon)(resources.GetObject("notifyIcon1.Icon")));
|
|
|
|
|
+ this.notifyIcon1.Text = "DriveLogger";
|
|
|
|
|
+ this.notifyIcon1.Visible = true;
|
|
|
|
|
+ //
|
|
|
|
|
+ // contextMenuNotify
|
|
|
|
|
+ //
|
|
|
|
|
+ this.contextMenuNotify.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
|
|
|
|
+ this.loggerHIDEToolStripMenuItem,
|
|
|
|
|
+ this.eXITToolStripMenuItem});
|
|
|
|
|
+ this.contextMenuNotify.Name = "contextMenuStrip1";
|
|
|
|
|
+ this.contextMenuNotify.Size = new System.Drawing.Size(111, 48);
|
|
|
|
|
+ //
|
|
|
|
|
+ // loggerHIDEToolStripMenuItem
|
|
|
|
|
+ //
|
|
|
|
|
+ this.loggerHIDEToolStripMenuItem.Name = "loggerHIDEToolStripMenuItem";
|
|
|
|
|
+ this.loggerHIDEToolStripMenuItem.Size = new System.Drawing.Size(110, 22);
|
|
|
|
|
+ this.loggerHIDEToolStripMenuItem.Text = "SHOW";
|
|
|
|
|
+ this.loggerHIDEToolStripMenuItem.Click += new System.EventHandler(this.loggerHIDEToolStripMenuItem_Click);
|
|
|
|
|
+ //
|
|
|
|
|
+ // eXITToolStripMenuItem
|
|
|
|
|
+ //
|
|
|
|
|
+ this.eXITToolStripMenuItem.Name = "eXITToolStripMenuItem";
|
|
|
|
|
+ this.eXITToolStripMenuItem.Size = new System.Drawing.Size(110, 22);
|
|
|
|
|
+ this.eXITToolStripMenuItem.Text = "EXIT";
|
|
|
|
|
+ this.eXITToolStripMenuItem.Click += new System.EventHandler(this.eXITToolStripMenuItem_Click);
|
|
|
|
|
+ //
|
|
|
|
|
+ // contextMenu
|
|
|
|
|
+ //
|
|
|
|
|
+ this.contextMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
|
|
|
|
+ this.loggerHIDEToolStripMenuItem1,
|
|
|
|
|
+ this.eXITToolStripMenuItem1});
|
|
|
|
|
+ this.contextMenu.Name = "contextMenu";
|
|
|
|
|
+ this.contextMenu.Size = new System.Drawing.Size(143, 48);
|
|
|
|
|
+ //
|
|
|
|
|
+ // loggerHIDEToolStripMenuItem1
|
|
|
|
|
+ //
|
|
|
|
|
+ this.loggerHIDEToolStripMenuItem1.Name = "loggerHIDEToolStripMenuItem1";
|
|
|
|
|
+ this.loggerHIDEToolStripMenuItem1.Size = new System.Drawing.Size(142, 22);
|
|
|
|
|
+ this.loggerHIDEToolStripMenuItem1.Text = "Logger HIDE";
|
|
|
|
|
+ this.loggerHIDEToolStripMenuItem1.Click += new System.EventHandler(this.loggerHIDEToolStripMenuItem1_Click);
|
|
|
|
|
+ //
|
|
|
|
|
+ // eXITToolStripMenuItem1
|
|
|
|
|
+ //
|
|
|
|
|
+ this.eXITToolStripMenuItem1.Name = "eXITToolStripMenuItem1";
|
|
|
|
|
+ this.eXITToolStripMenuItem1.Size = new System.Drawing.Size(142, 22);
|
|
|
|
|
+ this.eXITToolStripMenuItem1.Text = "EXIT";
|
|
|
|
|
+ this.eXITToolStripMenuItem1.Click += new System.EventHandler(this.eXITToolStripMenuItem1_Click);
|
|
|
|
|
+ //
|
|
|
|
|
+ // label57
|
|
|
|
|
+ //
|
|
|
|
|
+ this.label57.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51)))));
|
|
|
|
|
+ this.label57.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
|
|
|
|
+ this.label57.Dock = System.Windows.Forms.DockStyle.Top;
|
|
|
|
|
+ this.label57.Font = new System.Drawing.Font("Segoe UI Symbol", 12F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
|
|
|
+ this.label57.ForeColor = System.Drawing.Color.White;
|
|
|
|
|
+ this.label57.Location = new System.Drawing.Point(0, 0);
|
|
|
|
|
+ this.label57.Name = "label57";
|
|
|
|
|
+ this.label57.Size = new System.Drawing.Size(238, 29);
|
|
|
|
|
+ this.label57.TabIndex = 14;
|
|
|
|
|
+ this.label57.Text = "OHV Drive Logger";
|
|
|
|
|
+ this.label57.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
|
|
|
|
+ //
|
|
|
// FormMain
|
|
// FormMain
|
|
|
//
|
|
//
|
|
|
- this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
|
|
|
|
|
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
|
|
|
|
|
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
|
|
|
|
+ this.AutoSize = true;
|
|
|
this.BackColor = System.Drawing.SystemColors.ActiveBorder;
|
|
this.BackColor = System.Drawing.SystemColors.ActiveBorder;
|
|
|
- this.ClientSize = new System.Drawing.Size(245, 72);
|
|
|
|
|
|
|
+ this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
|
|
|
|
|
+ this.ClientSize = new System.Drawing.Size(238, 92);
|
|
|
|
|
+ this.ContextMenuStrip = this.contextMenu;
|
|
|
|
|
+ this.ControlBox = false;
|
|
|
|
|
+ this.Controls.Add(this.label57);
|
|
|
this.Controls.Add(this.btnBit);
|
|
this.Controls.Add(this.btnBit);
|
|
|
this.Controls.Add(this.lblPLCCommState);
|
|
this.Controls.Add(this.lblPLCCommState);
|
|
|
this.Controls.Add(this.label55);
|
|
this.Controls.Add(this.label55);
|
|
|
|
|
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
|
|
|
|
|
+ this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
|
|
|
|
+ this.MaximizeBox = false;
|
|
|
this.Name = "FormMain";
|
|
this.Name = "FormMain";
|
|
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
|
|
- this.Text = "OHV Drive Logger";
|
|
|
|
|
|
|
+ this.Text = "Drive Logger";
|
|
|
|
|
+ this.contextMenuNotify.ResumeLayout(false);
|
|
|
|
|
+ this.contextMenu.ResumeLayout(false);
|
|
|
this.ResumeLayout(false);
|
|
this.ResumeLayout(false);
|
|
|
|
|
|
|
|
}
|
|
}
|
|
@@ -91,6 +177,14 @@
|
|
|
public System.Windows.Forms.Label lblPLCCommState;
|
|
public System.Windows.Forms.Label lblPLCCommState;
|
|
|
private System.Windows.Forms.Label label55;
|
|
private System.Windows.Forms.Label label55;
|
|
|
private System.Windows.Forms.Button btnBit;
|
|
private System.Windows.Forms.Button btnBit;
|
|
|
|
|
+ private System.Windows.Forms.NotifyIcon notifyIcon1;
|
|
|
|
|
+ private System.Windows.Forms.ContextMenuStrip contextMenuNotify;
|
|
|
|
|
+ private System.Windows.Forms.ToolStripMenuItem loggerHIDEToolStripMenuItem;
|
|
|
|
|
+ private System.Windows.Forms.ToolStripMenuItem eXITToolStripMenuItem;
|
|
|
|
|
+ private System.Windows.Forms.ContextMenuStrip contextMenu;
|
|
|
|
|
+ private System.Windows.Forms.ToolStripMenuItem loggerHIDEToolStripMenuItem1;
|
|
|
|
|
+ private System.Windows.Forms.ToolStripMenuItem eXITToolStripMenuItem1;
|
|
|
|
|
+ private System.Windows.Forms.Label label57;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|