326 lines
16 KiB
C#
326 lines
16 KiB
C#
using System;
|
|
using System.Drawing;
|
|
using System.Windows.Forms;
|
|
|
|
namespace LoopViewerApp
|
|
{
|
|
partial class TrafficInterlockViewer
|
|
{
|
|
private System.ComponentModel.IContainer components = null;
|
|
|
|
private ListView lstTasks;
|
|
private GroupBox grpEdit;
|
|
|
|
private ColumnHeader colAreaName;
|
|
private ColumnHeader colSites;
|
|
private ColumnHeader colControlRight;
|
|
private ColumnHeader colIsOccupied;
|
|
private ColumnHeader colIsEnabled;
|
|
|
|
private Label lblAreaName;
|
|
private TextBox txtAreaName;
|
|
private Label lblStationIds;
|
|
private TextBox txtStationIds;
|
|
private Label lblControlRight;
|
|
private TextBox txtControlRight;
|
|
private Label lblIsOccupied;
|
|
private CheckBox chkIsOccupied;
|
|
private Label lblIsEnabled;
|
|
private CheckBox chkIsEnabled;
|
|
private Label lblEditingHint;
|
|
private Button btnSave;
|
|
private Button btnRefresh;
|
|
private Button btnNew;
|
|
private Button btnDelete;
|
|
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
if (disposing && (components != null))
|
|
{
|
|
components.Dispose();
|
|
}
|
|
base.Dispose(disposing);
|
|
}
|
|
|
|
private void InitializeComponent()
|
|
{
|
|
this.lstTasks = new System.Windows.Forms.ListView();
|
|
this.colAreaName = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
|
this.colSites = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
|
this.colControlRight = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
|
this.colIsOccupied = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
|
this.colIsEnabled = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
|
this.grpEdit = new System.Windows.Forms.GroupBox();
|
|
this.lblEditingHint = new System.Windows.Forms.Label();
|
|
this.lblAreaName = new System.Windows.Forms.Label();
|
|
this.txtAreaName = new System.Windows.Forms.TextBox();
|
|
this.lblStationIds = new System.Windows.Forms.Label();
|
|
this.txtStationIds = new System.Windows.Forms.TextBox();
|
|
this.lblControlRight = new System.Windows.Forms.Label();
|
|
this.txtControlRight = new System.Windows.Forms.TextBox();
|
|
this.lblIsOccupied = new System.Windows.Forms.Label();
|
|
this.chkIsOccupied = new System.Windows.Forms.CheckBox();
|
|
this.lblIsEnabled = new System.Windows.Forms.Label();
|
|
this.chkIsEnabled = new System.Windows.Forms.CheckBox();
|
|
this.btnSave = new System.Windows.Forms.Button();
|
|
this.btnRefresh = new System.Windows.Forms.Button();
|
|
this.btnNew = new System.Windows.Forms.Button();
|
|
this.btnDelete = new System.Windows.Forms.Button();
|
|
this.grpEdit.SuspendLayout();
|
|
this.SuspendLayout();
|
|
//
|
|
// lstTasks
|
|
//
|
|
this.lstTasks.BackColor = System.Drawing.Color.White;
|
|
this.lstTasks.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
|
|
this.colAreaName,
|
|
this.colSites,
|
|
this.colControlRight,
|
|
this.colIsOccupied,
|
|
this.colIsEnabled});
|
|
this.lstTasks.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(33)))), ((int)(((byte)(33)))), ((int)(((byte)(33)))));
|
|
this.lstTasks.FullRowSelect = true;
|
|
this.lstTasks.HideSelection = false;
|
|
this.lstTasks.Location = new System.Drawing.Point(12, 12);
|
|
this.lstTasks.Name = "lstTasks";
|
|
this.lstTasks.OwnerDraw = true;
|
|
this.lstTasks.Size = new System.Drawing.Size(760, 320);
|
|
this.lstTasks.TabIndex = 0;
|
|
this.lstTasks.UseCompatibleStateImageBehavior = false;
|
|
this.lstTasks.View = System.Windows.Forms.View.Details;
|
|
this.lstTasks.DrawColumnHeader += new System.Windows.Forms.DrawListViewColumnHeaderEventHandler(this.lstTasks_DrawColumnHeader);
|
|
this.lstTasks.DrawItem += new System.Windows.Forms.DrawListViewItemEventHandler(this.lstTasks_DrawItem);
|
|
this.lstTasks.DrawSubItem += new System.Windows.Forms.DrawListViewSubItemEventHandler(this.lstTasks_DrawSubItem);
|
|
this.lstTasks.SelectedIndexChanged += new System.EventHandler(this.lstTasks_SelectedIndexChanged);
|
|
//
|
|
// colAreaName
|
|
//
|
|
this.colAreaName.Text = "区域名称";
|
|
this.colAreaName.Width = 140;
|
|
//
|
|
// colSites
|
|
//
|
|
this.colSites.Text = "区域站点集合";
|
|
this.colSites.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
|
|
this.colSites.Width = 280;
|
|
//
|
|
// colControlRight
|
|
//
|
|
this.colControlRight.Text = "控制权";
|
|
this.colControlRight.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
|
|
this.colControlRight.Width = 120;
|
|
//
|
|
// colIsOccupied
|
|
//
|
|
this.colIsOccupied.Text = "是否被占用";
|
|
this.colIsOccupied.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
|
|
this.colIsOccupied.Width = 100;
|
|
//
|
|
// colIsEnabled
|
|
//
|
|
this.colIsEnabled.Text = "是否启用";
|
|
this.colIsEnabled.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
|
|
this.colIsEnabled.Width = 100;
|
|
//
|
|
// grpEdit
|
|
//
|
|
this.grpEdit.Controls.Add(this.lblEditingHint);
|
|
this.grpEdit.Controls.Add(this.lblAreaName);
|
|
this.grpEdit.Controls.Add(this.txtAreaName);
|
|
this.grpEdit.Controls.Add(this.lblStationIds);
|
|
this.grpEdit.Controls.Add(this.txtStationIds);
|
|
this.grpEdit.Controls.Add(this.lblControlRight);
|
|
this.grpEdit.Controls.Add(this.txtControlRight);
|
|
this.grpEdit.Controls.Add(this.lblIsOccupied);
|
|
this.grpEdit.Controls.Add(this.chkIsOccupied);
|
|
this.grpEdit.Controls.Add(this.lblIsEnabled);
|
|
this.grpEdit.Controls.Add(this.chkIsEnabled);
|
|
this.grpEdit.Controls.Add(this.btnSave);
|
|
this.grpEdit.Controls.Add(this.btnRefresh);
|
|
this.grpEdit.Controls.Add(this.btnNew);
|
|
this.grpEdit.Controls.Add(this.btnDelete);
|
|
this.grpEdit.Font = new System.Drawing.Font("微软雅黑", 10F, System.Drawing.FontStyle.Bold);
|
|
this.grpEdit.Location = new System.Drawing.Point(12, 345);
|
|
this.grpEdit.Name = "grpEdit";
|
|
this.grpEdit.Size = new System.Drawing.Size(760, 165);
|
|
this.grpEdit.TabIndex = 1;
|
|
this.grpEdit.TabStop = false;
|
|
this.grpEdit.Text = "数据新增/编辑(点击表格行可在此查看并编辑该行数据)";
|
|
//
|
|
// lblEditingHint
|
|
//
|
|
this.lblEditingHint.AutoSize = true;
|
|
this.lblEditingHint.Font = new System.Drawing.Font("微软雅黑", 10F, System.Drawing.FontStyle.Bold);
|
|
this.lblEditingHint.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(120)))), ((int)(((byte)(215)))));
|
|
this.lblEditingHint.Location = new System.Drawing.Point(12, 125);
|
|
this.lblEditingHint.Name = "lblEditingHint";
|
|
this.lblEditingHint.Size = new System.Drawing.Size(65, 19);
|
|
this.lblEditingHint.TabIndex = 0;
|
|
this.lblEditingHint.Text = "新增区域";
|
|
//
|
|
// lblAreaName
|
|
//
|
|
this.lblAreaName.AutoSize = true;
|
|
this.lblAreaName.Font = new System.Drawing.Font("微软雅黑", 10F);
|
|
this.lblAreaName.Location = new System.Drawing.Point(12, 28);
|
|
this.lblAreaName.Name = "lblAreaName";
|
|
this.lblAreaName.Size = new System.Drawing.Size(79, 20);
|
|
this.lblAreaName.TabIndex = 1;
|
|
this.lblAreaName.Text = "区域名称:";
|
|
//
|
|
// txtAreaName
|
|
//
|
|
this.txtAreaName.Font = new System.Drawing.Font("微软雅黑", 10F);
|
|
this.txtAreaName.Location = new System.Drawing.Point(100, 24);
|
|
this.txtAreaName.Name = "txtAreaName";
|
|
this.txtAreaName.Size = new System.Drawing.Size(200, 25);
|
|
this.txtAreaName.TabIndex = 2;
|
|
//
|
|
// lblStationIds
|
|
//
|
|
this.lblStationIds.AutoSize = true;
|
|
this.lblStationIds.Font = new System.Drawing.Font("微软雅黑", 10F);
|
|
this.lblStationIds.Location = new System.Drawing.Point(320, 28);
|
|
this.lblStationIds.Name = "lblStationIds";
|
|
this.lblStationIds.Size = new System.Drawing.Size(79, 20);
|
|
this.lblStationIds.TabIndex = 3;
|
|
this.lblStationIds.Text = "站点集合:";
|
|
//
|
|
// txtStationIds
|
|
//
|
|
this.txtStationIds.Font = new System.Drawing.Font("微软雅黑", 10F);
|
|
this.txtStationIds.Location = new System.Drawing.Point(418, 24);
|
|
this.txtStationIds.Name = "txtStationIds";
|
|
this.txtStationIds.Size = new System.Drawing.Size(320, 25);
|
|
this.txtStationIds.TabIndex = 4;
|
|
//
|
|
// lblControlRight
|
|
//
|
|
this.lblControlRight.AutoSize = true;
|
|
this.lblControlRight.Font = new System.Drawing.Font("微软雅黑", 10F);
|
|
this.lblControlRight.Location = new System.Drawing.Point(12, 58);
|
|
this.lblControlRight.Name = "lblControlRight";
|
|
this.lblControlRight.Size = new System.Drawing.Size(65, 20);
|
|
this.lblControlRight.TabIndex = 5;
|
|
this.lblControlRight.Text = "控制权:";
|
|
//
|
|
// txtControlRight
|
|
//
|
|
this.txtControlRight.Font = new System.Drawing.Font("微软雅黑", 10F);
|
|
this.txtControlRight.Location = new System.Drawing.Point(100, 54);
|
|
this.txtControlRight.Name = "txtControlRight";
|
|
this.txtControlRight.Size = new System.Drawing.Size(200, 25);
|
|
this.txtControlRight.TabIndex = 6;
|
|
//
|
|
// lblIsOccupied
|
|
//
|
|
this.lblIsOccupied.AutoSize = true;
|
|
this.lblIsOccupied.Font = new System.Drawing.Font("微软雅黑", 10F);
|
|
this.lblIsOccupied.Location = new System.Drawing.Point(320, 58);
|
|
this.lblIsOccupied.Name = "lblIsOccupied";
|
|
this.lblIsOccupied.Size = new System.Drawing.Size(93, 20);
|
|
this.lblIsOccupied.TabIndex = 7;
|
|
this.lblIsOccupied.Text = "是否被占用:";
|
|
//
|
|
// chkIsOccupied
|
|
//
|
|
this.chkIsOccupied.AutoSize = true;
|
|
this.chkIsOccupied.Font = new System.Drawing.Font("Segoe UI", 9F);
|
|
this.chkIsOccupied.Location = new System.Drawing.Point(418, 59);
|
|
this.chkIsOccupied.Name = "chkIsOccupied";
|
|
this.chkIsOccupied.Size = new System.Drawing.Size(39, 19);
|
|
this.chkIsOccupied.TabIndex = 8;
|
|
this.chkIsOccupied.Text = "是";
|
|
//
|
|
// lblIsEnabled
|
|
//
|
|
this.lblIsEnabled.AutoSize = true;
|
|
this.lblIsEnabled.Font = new System.Drawing.Font("微软雅黑", 10F);
|
|
this.lblIsEnabled.Location = new System.Drawing.Point(500, 58);
|
|
this.lblIsEnabled.Name = "lblIsEnabled";
|
|
this.lblIsEnabled.Size = new System.Drawing.Size(79, 20);
|
|
this.lblIsEnabled.TabIndex = 9;
|
|
this.lblIsEnabled.Text = "是否启用:";
|
|
//
|
|
// chkIsEnabled
|
|
//
|
|
this.chkIsEnabled.AutoSize = true;
|
|
this.chkIsEnabled.Checked = true;
|
|
this.chkIsEnabled.CheckState = System.Windows.Forms.CheckState.Checked;
|
|
this.chkIsEnabled.Font = new System.Drawing.Font("Segoe UI", 9F);
|
|
this.chkIsEnabled.Location = new System.Drawing.Point(585, 59);
|
|
this.chkIsEnabled.Name = "chkIsEnabled";
|
|
this.chkIsEnabled.Size = new System.Drawing.Size(39, 19);
|
|
this.chkIsEnabled.TabIndex = 10;
|
|
this.chkIsEnabled.Text = "是";
|
|
//
|
|
// btnSave
|
|
//
|
|
this.btnSave.BackColor = System.Drawing.Color.LightBlue;
|
|
this.btnSave.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
|
this.btnSave.Font = new System.Drawing.Font("微软雅黑", 11F, System.Drawing.FontStyle.Bold);
|
|
this.btnSave.Location = new System.Drawing.Point(260, 118);
|
|
this.btnSave.Name = "btnSave";
|
|
this.btnSave.Size = new System.Drawing.Size(140, 40);
|
|
this.btnSave.TabIndex = 12;
|
|
this.btnSave.Text = "保存";
|
|
this.btnSave.UseVisualStyleBackColor = false;
|
|
this.btnSave.Click += new System.EventHandler(this.btnSave_Click);
|
|
//
|
|
// btnRefresh
|
|
//
|
|
this.btnRefresh.BackColor = System.Drawing.SystemColors.Control;
|
|
this.btnRefresh.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
|
this.btnRefresh.Font = new System.Drawing.Font("微软雅黑", 11F);
|
|
this.btnRefresh.Location = new System.Drawing.Point(410, 118);
|
|
this.btnRefresh.Name = "btnRefresh";
|
|
this.btnRefresh.Size = new System.Drawing.Size(140, 40);
|
|
this.btnRefresh.TabIndex = 13;
|
|
this.btnRefresh.Text = "刷新";
|
|
this.btnRefresh.UseVisualStyleBackColor = false;
|
|
this.btnRefresh.Click += new System.EventHandler(this.btnRefresh_Click);
|
|
//
|
|
// btnNew
|
|
//
|
|
this.btnNew.BackColor = System.Drawing.SystemColors.Control;
|
|
this.btnNew.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
|
this.btnNew.Font = new System.Drawing.Font("微软雅黑", 11F);
|
|
this.btnNew.Location = new System.Drawing.Point(560, 118);
|
|
this.btnNew.Name = "btnNew";
|
|
this.btnNew.Size = new System.Drawing.Size(140, 40);
|
|
this.btnNew.TabIndex = 14;
|
|
this.btnNew.Text = "新增";
|
|
this.btnNew.UseVisualStyleBackColor = false;
|
|
this.btnNew.Click += new System.EventHandler(this.btnNew_Click);
|
|
//
|
|
// btnDelete
|
|
//
|
|
this.btnDelete.BackColor = System.Drawing.SystemColors.Control;
|
|
this.btnDelete.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
|
this.btnDelete.Font = new System.Drawing.Font("微软雅黑", 11F);
|
|
this.btnDelete.Location = new System.Drawing.Point(110, 118);
|
|
this.btnDelete.Name = "btnDelete";
|
|
this.btnDelete.Size = new System.Drawing.Size(140, 40);
|
|
this.btnDelete.TabIndex = 11;
|
|
this.btnDelete.Text = "删除";
|
|
this.btnDelete.UseVisualStyleBackColor = false;
|
|
this.btnDelete.Click += new System.EventHandler(this.btnDelete_Click);
|
|
//
|
|
// TrafficInterlockViewer
|
|
//
|
|
this.ClientSize = new System.Drawing.Size(784, 521);
|
|
this.Controls.Add(this.lstTasks);
|
|
this.Controls.Add(this.grpEdit);
|
|
this.Font = new System.Drawing.Font("微软雅黑", 9F);
|
|
this.MinimumSize = new System.Drawing.Size(700, 450);
|
|
this.Name = "TrafficInterlockViewer";
|
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
|
this.Text = "交通联锁区域管理";
|
|
this.grpEdit.ResumeLayout(false);
|
|
this.grpEdit.PerformLayout();
|
|
this.ResumeLayout(false);
|
|
|
|
}
|
|
}
|
|
}
|