📄 form1.designer.cs
字号:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Collections;
namespace DAC_CSDEMO
{
public partial class Form1
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows 窗体设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要
/// 使用代码编辑器修改此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.menuStrip1 = new System.Windows.Forms.MenuStrip();
this.FileMenu = new System.Windows.Forms.ToolStripMenuItem();
this.ExitMenu = new System.Windows.Forms.ToolStripMenuItem();
this.OPCMenu = new System.Windows.Forms.ToolStripMenuItem();
this.ConnectMenu = new System.Windows.Forms.ToolStripMenuItem();
this.DisconnectMenu = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripSeparator();
this.ServerStatusMenu = new System.Windows.Forms.ToolStripMenuItem();
this.GroupStatusMenu = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripMenuItem3 = new System.Windows.Forms.ToolStripSeparator();
this.AddItemMenu = new System.Windows.Forms.ToolStripMenuItem();
this.RemoveItemMenu = new System.Windows.Forms.ToolStripMenuItem();
this.ReadItemMenu = new System.Windows.Forms.ToolStripMenuItem();
this.WriteItemMenu = new System.Windows.Forms.ToolStripMenuItem();
this.ItemPropMenu = new System.Windows.Forms.ToolStripMenuItem();
this.HelpMenu = new System.Windows.Forms.ToolStripMenuItem();
this.AboutMenu = new System.Windows.Forms.ToolStripMenuItem();
this.listView1 = new System.Windows.Forms.ListView();
this.columnHeader1 = new System.Windows.Forms.ColumnHeader();
this.columnHeader2 = new System.Windows.Forms.ColumnHeader();
this.columnHeader3 = new System.Windows.Forms.ColumnHeader();
this.WriteValue = new System.Windows.Forms.TextBox();
this.WriteItem = new System.Windows.Forms.Button();
this.menuStrip1.SuspendLayout();
this.SuspendLayout();
//
// menuStrip1
//
this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.FileMenu,
this.OPCMenu,
this.HelpMenu});
this.menuStrip1.Location = new System.Drawing.Point(0, 0);
this.menuStrip1.Name = "menuStrip1";
this.menuStrip1.RenderMode = System.Windows.Forms.ToolStripRenderMode.Professional;
this.menuStrip1.Size = new System.Drawing.Size(632, 24);
this.menuStrip1.TabIndex = 0;
this.menuStrip1.Text = "menuStrip1";
//
// FileMenu
//
this.FileMenu.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.ExitMenu});
this.FileMenu.Name = "FileMenu";
this.FileMenu.Size = new System.Drawing.Size(77, 20);
this.FileMenu.Text = "文件(&File)";
//
// ExitMenu
//
this.ExitMenu.Name = "ExitMenu";
this.ExitMenu.Size = new System.Drawing.Size(130, 22);
this.ExitMenu.Text = "退出(E&xit)";
this.ExitMenu.Click += new System.EventHandler(this.ExitMenu_Click);
//
// OPCMenu
//
this.OPCMenu.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.ConnectMenu,
this.DisconnectMenu,
this.toolStripMenuItem2,
this.ServerStatusMenu,
this.GroupStatusMenu,
this.toolStripMenuItem3,
this.AddItemMenu,
this.RemoveItemMenu,
this.ReadItemMenu,
this.WriteItemMenu,
this.ItemPropMenu});
this.OPCMenu.Name = "OPCMenu";
this.OPCMenu.Size = new System.Drawing.Size(35, 20);
this.OPCMenu.Text = "&OPC";
//
// ConnectMenu
//
this.ConnectMenu.Name = "ConnectMenu";
this.ConnectMenu.Size = new System.Drawing.Size(244, 22);
this.ConnectMenu.Text = "连接服务器(&Connect to Server)";
this.ConnectMenu.Click += new System.EventHandler(this.ConnectMenu_Click);
//
// DisconnectMenu
//
this.DisconnectMenu.Enabled = false;
this.DisconnectMenu.Name = "DisconnectMenu";
this.DisconnectMenu.Size = new System.Drawing.Size(244, 22);
this.DisconnectMenu.Text = "断开连接(&Disconnect)";
this.DisconnectMenu.Click += new System.EventHandler(this.DisconnectMenu_Click);
//
// toolStripMenuItem2
//
this.toolStripMenuItem2.Name = "toolStripMenuItem2";
this.toolStripMenuItem2.Size = new System.Drawing.Size(241, 6);
//
// ServerStatusMenu
//
this.ServerStatusMenu.Enabled = false;
this.ServerStatusMenu.Name = "ServerStatusMenu";
this.ServerStatusMenu.Size = new System.Drawing.Size(244, 22);
this.ServerStatusMenu.Text = "服务器状态(Server Status)";
this.ServerStatusMenu.Click += new System.EventHandler(this.ServerStatusMenu_Click);
//
// GroupStatusMenu
//
this.GroupStatusMenu.Enabled = false;
this.GroupStatusMenu.Name = "GroupStatusMenu";
this.GroupStatusMenu.Size = new System.Drawing.Size(244, 22);
this.GroupStatusMenu.Text = "组状态(Group Status)";
this.GroupStatusMenu.Click += new System.EventHandler(this.GroupStatusMenu_Click);
//
// toolStripMenuItem3
//
this.toolStripMenuItem3.Name = "toolStripMenuItem3";
this.toolStripMenuItem3.Size = new System.Drawing.Size(241, 6);
//
// AddItemMenu
//
this.AddItemMenu.Enabled = false;
this.AddItemMenu.Name = "AddItemMenu";
this.AddItemMenu.Size = new System.Drawing.Size(244, 22);
this.AddItemMenu.Text = "增加标签(Add Items)";
this.AddItemMenu.Click += new System.EventHandler(this.AddItemMenu_Click);
//
// RemoveItemMenu
//
this.RemoveItemMenu.Enabled = false;
this.RemoveItemMenu.Name = "RemoveItemMenu";
this.RemoveItemMenu.Size = new System.Drawing.Size(244, 22);
this.RemoveItemMenu.Text = "删除标签(Remove Item)";
this.RemoveItemMenu.Click += new System.EventHandler(this.RemoveItemMenu_Click);
//
// ReadItemMenu
//
this.ReadItemMenu.Enabled = false;
this.ReadItemMenu.Name = "ReadItemMenu";
this.ReadItemMenu.Size = new System.Drawing.Size(244, 22);
this.ReadItemMenu.Text = "读标签(Read Item)";
this.ReadItemMenu.Click += new System.EventHandler(this.ReadItemMenu_Click);
//
// WriteItemMenu
//
this.WriteItemMenu.Enabled = false;
this.WriteItemMenu.Name = "WriteItemMenu";
this.WriteItemMenu.Size = new System.Drawing.Size(244, 22);
this.WriteItemMenu.Text = "写标签(Write Item)";
this.WriteItemMenu.Click += new System.EventHandler(this.WriteItemMenu_Click);
//
// ItemPropMenu
//
this.ItemPropMenu.Enabled = false;
this.ItemPropMenu.Name = "ItemPropMenu";
this.ItemPropMenu.Size = new System.Drawing.Size(244, 22);
this.ItemPropMenu.Text = "标签属性(Item Properties)";
this.ItemPropMenu.Click += new System.EventHandler(this.ItemPropMenu_Click);
//
// HelpMenu
//
this.HelpMenu.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.AboutMenu});
this.HelpMenu.Name = "HelpMenu";
this.HelpMenu.Size = new System.Drawing.Size(77, 20);
this.HelpMenu.Text = "帮助(&Help)";
//
// AboutMenu
//
this.AboutMenu.Name = "AboutMenu";
this.AboutMenu.Size = new System.Drawing.Size(152, 22);
this.AboutMenu.Text = "关于(&About)";
this.AboutMenu.Click += new System.EventHandler(this.AboutMenu_Click);
//
// listView1
//
this.listView1.Alignment = System.Windows.Forms.ListViewAlignment.Left;
this.listView1.AllowColumnReorder = true;
this.listView1.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.listView1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.listView1.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
this.columnHeader1,
this.columnHeader2,
this.columnHeader3});
this.listView1.FullRowSelect = true;
this.listView1.HideSelection = false;
this.listView1.Location = new System.Drawing.Point(0, 27);
this.listView1.MultiSelect = false;
this.listView1.Name = "listView1";
this.listView1.Size = new System.Drawing.Size(632, 426);
this.listView1.TabIndex = 2;
this.listView1.UseCompatibleStateImageBehavior = false;
this.listView1.View = System.Windows.Forms.View.Details;
this.listView1.SelectedIndexChanged += new System.EventHandler(this.listView1_SelectedIndexChanged);
//
// columnHeader1
//
this.columnHeader1.Text = "标签名称";
this.columnHeader1.Width = 200;
//
// columnHeader2
//
this.columnHeader2.Text = "值";
this.columnHeader2.Width = 200;
//
// columnHeader3
//
this.columnHeader3.Text = "时间";
this.columnHeader3.Width = 200;
//
// WriteValue
//
this.WriteValue.Location = new System.Drawing.Point(450, 3);
this.WriteValue.Name = "WriteValue";
this.WriteValue.Size = new System.Drawing.Size(100, 21);
this.WriteValue.TabIndex = 3;
//
// WriteItem
//
this.WriteItem.Enabled = false;
this.WriteItem.Location = new System.Drawing.Point(557, 1);
this.WriteItem.Name = "WriteItem";
this.WriteItem.Size = new System.Drawing.Size(75, 23);
this.WriteItem.TabIndex = 4;
this.WriteItem.Text = "写入";
this.WriteItem.UseVisualStyleBackColor = true;
this.WriteItem.Click += new System.EventHandler(this.WriteItem_Click);
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(632, 453);
this.Controls.Add(this.WriteItem);
this.Controls.Add(this.WriteValue);
this.Controls.Add(this.listView1);
this.Controls.Add(this.menuStrip1);
this.MainMenuStrip = this.menuStrip1;
this.Name = "Form1";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "OPC DA Client by C#(Agilewill co.ltd)";
this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.Form1_FormClosed);
this.Load += new System.EventHandler(this.Form1_Load);
this.menuStrip1.ResumeLayout(false);
this.menuStrip1.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.MenuStrip menuStrip1;
private System.Windows.Forms.ToolStripMenuItem FileMenu;
private System.Windows.Forms.ToolStripMenuItem ExitMenu;
private System.Windows.Forms.ToolStripMenuItem OPCMenu;
private System.Windows.Forms.ToolStripMenuItem ConnectMenu;
private System.Windows.Forms.ToolStripMenuItem DisconnectMenu;
private System.Windows.Forms.ToolStripSeparator toolStripMenuItem2;
private System.Windows.Forms.ToolStripMenuItem ServerStatusMenu;
private System.Windows.Forms.ToolStripMenuItem HelpMenu;
private System.Windows.Forms.ToolStripMenuItem GroupStatusMenu;
private System.Windows.Forms.ToolStripSeparator toolStripMenuItem3;
private System.Windows.Forms.ToolStripMenuItem AddItemMenu;
private System.Windows.Forms.ToolStripMenuItem RemoveItemMenu;
private System.Windows.Forms.ToolStripMenuItem ReadItemMenu;
private System.Windows.Forms.ToolStripMenuItem WriteItemMenu;
private System.Windows.Forms.ToolStripMenuItem AboutMenu;
private System.Windows.Forms.ListView listView1;
private ColumnHeader columnHeader1;
private ColumnHeader columnHeader2;
private ColumnHeader columnHeader3;
private TextBox WriteValue;
private Button WriteItem;
private ToolStripMenuItem ItemPropMenu;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -