570 lines
28 KiB
C#
570 lines
28 KiB
C#
using System;
|
|
using System.Drawing;
|
|
using System.Windows.Forms;
|
|
|
|
namespace LoopViewerApp
|
|
{
|
|
partial class LoopViewer
|
|
{
|
|
private System.ComponentModel.IContainer components = null;
|
|
|
|
private ComboBox cmbTaskKind;
|
|
private NumericUpDown numCurrent;
|
|
private NumericUpDown numTarget;
|
|
private NumericUpDown numTraffic;
|
|
private CheckBox chkViaPoint;
|
|
private ComboBox cmbStartType;
|
|
private NumericUpDown numPriority;
|
|
private Button btnEdit; // 保留字段以供代码逻辑/样式使用(在界面上隐藏)
|
|
private Button btnDelete; // 保留字段以供代码逻辑/样式使用(在界面上隐藏)
|
|
private Button btnSave;
|
|
private Button btnCancel;
|
|
private ListView lstTasks;
|
|
private GroupBox grpEdit;
|
|
|
|
// 布局控件
|
|
private SplitContainer splitContainer;
|
|
private TableLayoutPanel tlpEdit;
|
|
private FlowLayoutPanel flpButtons;
|
|
|
|
// 中间竖向按钮(列表与编辑区之间)
|
|
private Panel pnlMiddle;
|
|
private FlowLayoutPanel flpMiddle;
|
|
private Button btnMiddleEdit;
|
|
private Button btnMiddleDelete;
|
|
|
|
// 列头
|
|
private ColumnHeader colId;
|
|
private ColumnHeader colTaskType;
|
|
private ColumnHeader colCurrent;
|
|
private ColumnHeader colTarget;
|
|
private ColumnHeader colTraffic;
|
|
private ColumnHeader colPriority;
|
|
private ColumnHeader colViaPoint;
|
|
private ColumnHeader colStartType;
|
|
|
|
// 标签字段(编辑区)
|
|
private Label lblKind;
|
|
private Label lblCurrent;
|
|
private Label lblTarget;
|
|
private Label lblTraffic;
|
|
private Label lblPriority;
|
|
private Label lblVia;
|
|
private Label lblStartType;
|
|
private Label lblEditingId; // 显示当前编辑的任务ID
|
|
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
if (disposing && (components != null))
|
|
{
|
|
components.Dispose();
|
|
}
|
|
base.Dispose(disposing);
|
|
}
|
|
|
|
private void InitializeComponent()
|
|
{
|
|
this.splitContainer = new System.Windows.Forms.SplitContainer();
|
|
this.pnlMiddle = new System.Windows.Forms.Panel();
|
|
this.flpMiddle = new System.Windows.Forms.FlowLayoutPanel();
|
|
this.btnMiddleEdit = new System.Windows.Forms.Button();
|
|
this.btnMiddleDelete = new System.Windows.Forms.Button();
|
|
this.lstTasks = new System.Windows.Forms.ListView();
|
|
this.colId = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
|
this.colTaskType = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
|
this.colCurrent = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
|
this.colTarget = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
|
this.colTraffic = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
|
this.colPriority = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
|
this.colViaPoint = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
|
this.colStartType = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
|
this.grpEdit = new System.Windows.Forms.GroupBox();
|
|
this.tlpEdit = new System.Windows.Forms.TableLayoutPanel();
|
|
this.lblEditingId = new System.Windows.Forms.Label();
|
|
this.lblKind = new System.Windows.Forms.Label();
|
|
this.cmbTaskKind = new System.Windows.Forms.ComboBox();
|
|
this.lblCurrent = new System.Windows.Forms.Label();
|
|
this.numCurrent = new System.Windows.Forms.NumericUpDown();
|
|
this.lblTarget = new System.Windows.Forms.Label();
|
|
this.numTarget = new System.Windows.Forms.NumericUpDown();
|
|
this.lblTraffic = new System.Windows.Forms.Label();
|
|
this.numTraffic = new System.Windows.Forms.NumericUpDown();
|
|
this.lblPriority = new System.Windows.Forms.Label();
|
|
this.numPriority = new System.Windows.Forms.NumericUpDown();
|
|
this.lblVia = new System.Windows.Forms.Label();
|
|
this.chkViaPoint = new System.Windows.Forms.CheckBox();
|
|
this.lblStartType = new System.Windows.Forms.Label();
|
|
this.cmbStartType = new System.Windows.Forms.ComboBox();
|
|
this.flpButtons = new System.Windows.Forms.FlowLayoutPanel();
|
|
this.btnSave = new System.Windows.Forms.Button();
|
|
this.btnCancel = new System.Windows.Forms.Button();
|
|
this.btnEdit = new System.Windows.Forms.Button();
|
|
this.btnDelete = new System.Windows.Forms.Button();
|
|
((System.ComponentModel.ISupportInitialize)(this.splitContainer)).BeginInit();
|
|
this.splitContainer.Panel1.SuspendLayout();
|
|
this.splitContainer.Panel2.SuspendLayout();
|
|
this.splitContainer.SuspendLayout();
|
|
this.pnlMiddle.SuspendLayout();
|
|
this.flpMiddle.SuspendLayout();
|
|
this.grpEdit.SuspendLayout();
|
|
this.tlpEdit.SuspendLayout();
|
|
((System.ComponentModel.ISupportInitialize)(this.numCurrent)).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.numTarget)).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.numTraffic)).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.numPriority)).BeginInit();
|
|
this.flpButtons.SuspendLayout();
|
|
this.SuspendLayout();
|
|
//
|
|
// splitContainer
|
|
//
|
|
this.splitContainer.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
this.splitContainer.Location = new System.Drawing.Point(0, 0);
|
|
this.splitContainer.Name = "splitContainer";
|
|
//
|
|
// splitContainer.Panel1
|
|
//
|
|
this.splitContainer.Panel1.Controls.Add(this.pnlMiddle);
|
|
this.splitContainer.Panel1.Controls.Add(this.lstTasks);
|
|
//
|
|
// splitContainer.Panel2
|
|
//
|
|
this.splitContainer.Panel2.Controls.Add(this.grpEdit);
|
|
this.splitContainer.Size = new System.Drawing.Size(1200, 600);
|
|
this.splitContainer.SplitterDistance = 680;
|
|
this.splitContainer.SplitterWidth = 6;
|
|
this.splitContainer.TabIndex = 0;
|
|
//
|
|
// pnlMiddle
|
|
//
|
|
this.pnlMiddle.Controls.Add(this.flpMiddle);
|
|
this.pnlMiddle.Dock = System.Windows.Forms.DockStyle.Right;
|
|
this.pnlMiddle.Location = new System.Drawing.Point(614, 0);
|
|
this.pnlMiddle.Name = "pnlMiddle";
|
|
this.pnlMiddle.Padding = new System.Windows.Forms.Padding(6);
|
|
this.pnlMiddle.Size = new System.Drawing.Size(66, 600);
|
|
this.pnlMiddle.TabIndex = 0;
|
|
//
|
|
// flpMiddle
|
|
//
|
|
this.flpMiddle.Anchor = System.Windows.Forms.AnchorStyles.None;
|
|
this.flpMiddle.Controls.Add(this.btnMiddleEdit);
|
|
this.flpMiddle.Controls.Add(this.btnMiddleDelete);
|
|
this.flpMiddle.FlowDirection = System.Windows.Forms.FlowDirection.TopDown;
|
|
this.flpMiddle.Location = new System.Drawing.Point(0, 220);
|
|
this.flpMiddle.Name = "flpMiddle";
|
|
this.flpMiddle.Padding = new System.Windows.Forms.Padding(2);
|
|
this.flpMiddle.Size = new System.Drawing.Size(63, 160);
|
|
this.flpMiddle.TabIndex = 0;
|
|
this.flpMiddle.WrapContents = false;
|
|
//
|
|
// btnMiddleEdit
|
|
//
|
|
this.btnMiddleEdit.BackColor = System.Drawing.SystemColors.Control;
|
|
this.btnMiddleEdit.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
|
this.btnMiddleEdit.Font = new System.Drawing.Font("微软雅黑", 9F);
|
|
this.btnMiddleEdit.Location = new System.Drawing.Point(6, 12);
|
|
this.btnMiddleEdit.Margin = new System.Windows.Forms.Padding(4, 10, 4, 4);
|
|
this.btnMiddleEdit.Name = "btnMiddleEdit";
|
|
this.btnMiddleEdit.Size = new System.Drawing.Size(50, 40);
|
|
this.btnMiddleEdit.TabIndex = 0;
|
|
this.btnMiddleEdit.Text = "编辑";
|
|
this.btnMiddleEdit.UseVisualStyleBackColor = false;
|
|
this.btnMiddleEdit.Click += new System.EventHandler(this.btnEdit_Click);
|
|
//
|
|
// btnMiddleDelete
|
|
//
|
|
this.btnMiddleDelete.BackColor = System.Drawing.Color.LightCoral;
|
|
this.btnMiddleDelete.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
|
this.btnMiddleDelete.Font = new System.Drawing.Font("微软雅黑", 9F);
|
|
this.btnMiddleDelete.Location = new System.Drawing.Point(6, 62);
|
|
this.btnMiddleDelete.Margin = new System.Windows.Forms.Padding(4, 6, 4, 4);
|
|
this.btnMiddleDelete.Name = "btnMiddleDelete";
|
|
this.btnMiddleDelete.Size = new System.Drawing.Size(50, 40);
|
|
this.btnMiddleDelete.TabIndex = 1;
|
|
this.btnMiddleDelete.Text = "删除";
|
|
this.btnMiddleDelete.UseVisualStyleBackColor = false;
|
|
this.btnMiddleDelete.Click += new System.EventHandler(this.btnDelete_Click);
|
|
//
|
|
// lstTasks
|
|
//
|
|
this.lstTasks.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
|
|
this.colId,
|
|
this.colTaskType,
|
|
this.colCurrent,
|
|
this.colTarget,
|
|
this.colTraffic,
|
|
this.colPriority,
|
|
this.colViaPoint,
|
|
this.colStartType});
|
|
this.lstTasks.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
this.lstTasks.FullRowSelect = true;
|
|
this.lstTasks.HideSelection = false;
|
|
this.lstTasks.Location = new System.Drawing.Point(0, 0);
|
|
this.lstTasks.Name = "lstTasks";
|
|
this.lstTasks.OwnerDraw = true;
|
|
this.lstTasks.Size = new System.Drawing.Size(680, 600);
|
|
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.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.lstTasks_MouseDoubleClick);
|
|
//
|
|
// colId
|
|
//
|
|
this.colId.Text = "ID";
|
|
this.colId.Width = 40;
|
|
//
|
|
// colTaskType
|
|
//
|
|
this.colTaskType.Text = "任务类别";
|
|
this.colTaskType.Width = 110;
|
|
//
|
|
// colCurrent
|
|
//
|
|
this.colCurrent.Text = "当前站点";
|
|
this.colCurrent.Width = 90;
|
|
//
|
|
// colTarget
|
|
//
|
|
this.colTarget.Text = "目标站点";
|
|
this.colTarget.Width = 90;
|
|
//
|
|
// colTraffic
|
|
//
|
|
this.colTraffic.Text = "流量控制";
|
|
this.colTraffic.Width = 90;
|
|
//
|
|
// colPriority
|
|
//
|
|
this.colPriority.Text = "优先级";
|
|
this.colPriority.Width = 80;
|
|
//
|
|
// colViaPoint
|
|
//
|
|
this.colViaPoint.Text = "途径点";
|
|
this.colViaPoint.Width = 70;
|
|
//
|
|
// colStartType
|
|
//
|
|
this.colStartType.Text = "启动类型";
|
|
this.colStartType.Width = 100;
|
|
//
|
|
// grpEdit
|
|
//
|
|
this.grpEdit.Controls.Add(this.tlpEdit);
|
|
this.grpEdit.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
this.grpEdit.Font = new System.Drawing.Font("微软雅黑", 10F, System.Drawing.FontStyle.Bold);
|
|
this.grpEdit.Location = new System.Drawing.Point(0, 0);
|
|
this.grpEdit.Name = "grpEdit";
|
|
this.grpEdit.Size = new System.Drawing.Size(514, 600);
|
|
this.grpEdit.TabIndex = 1;
|
|
this.grpEdit.TabStop = false;
|
|
this.grpEdit.Text = "任务信息(选中列表项后可编辑)";
|
|
//
|
|
// tlpEdit
|
|
//
|
|
this.tlpEdit.ColumnCount = 2;
|
|
this.tlpEdit.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 120F));
|
|
this.tlpEdit.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
|
|
this.tlpEdit.Controls.Add(this.lblEditingId, 0, 0);
|
|
this.tlpEdit.Controls.Add(this.lblKind, 0, 1);
|
|
this.tlpEdit.Controls.Add(this.cmbTaskKind, 1, 1);
|
|
this.tlpEdit.Controls.Add(this.lblCurrent, 0, 2);
|
|
this.tlpEdit.Controls.Add(this.numCurrent, 1, 2);
|
|
this.tlpEdit.Controls.Add(this.lblTarget, 0, 3);
|
|
this.tlpEdit.Controls.Add(this.numTarget, 1, 3);
|
|
this.tlpEdit.Controls.Add(this.lblTraffic, 0, 4);
|
|
this.tlpEdit.Controls.Add(this.numTraffic, 1, 4);
|
|
this.tlpEdit.Controls.Add(this.lblPriority, 0, 5);
|
|
this.tlpEdit.Controls.Add(this.numPriority, 1, 5);
|
|
this.tlpEdit.Controls.Add(this.lblVia, 0, 6);
|
|
this.tlpEdit.Controls.Add(this.chkViaPoint, 1, 6);
|
|
this.tlpEdit.Controls.Add(this.lblStartType, 0, 7);
|
|
this.tlpEdit.Controls.Add(this.cmbStartType, 1, 7);
|
|
this.tlpEdit.Controls.Add(this.flpButtons, 1, 8);
|
|
this.tlpEdit.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
this.tlpEdit.Location = new System.Drawing.Point(3, 25);
|
|
this.tlpEdit.Name = "tlpEdit";
|
|
this.tlpEdit.Padding = new System.Windows.Forms.Padding(8);
|
|
this.tlpEdit.RowCount = 9;
|
|
this.tlpEdit.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 36F));
|
|
this.tlpEdit.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 36F));
|
|
this.tlpEdit.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 36F));
|
|
this.tlpEdit.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 36F));
|
|
this.tlpEdit.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 36F));
|
|
this.tlpEdit.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 36F));
|
|
this.tlpEdit.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 36F));
|
|
this.tlpEdit.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 36F));
|
|
this.tlpEdit.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
|
|
this.tlpEdit.Size = new System.Drawing.Size(508, 572);
|
|
this.tlpEdit.TabIndex = 0;
|
|
//
|
|
// lblEditingId
|
|
//
|
|
this.lblEditingId.Anchor = System.Windows.Forms.AnchorStyles.Left;
|
|
this.lblEditingId.AutoSize = true;
|
|
this.tlpEdit.SetColumnSpan(this.lblEditingId, 2);
|
|
this.lblEditingId.Font = new System.Drawing.Font("微软雅黑", 10F, System.Drawing.FontStyle.Bold);
|
|
this.lblEditingId.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(120)))), ((int)(((byte)(215)))));
|
|
this.lblEditingId.Location = new System.Drawing.Point(11, 14);
|
|
this.lblEditingId.Name = "lblEditingId";
|
|
this.lblEditingId.Size = new System.Drawing.Size(78, 24);
|
|
this.lblEditingId.TabIndex = 0;
|
|
this.lblEditingId.Text = "新增任务";
|
|
//
|
|
// lblKind
|
|
//
|
|
this.lblKind.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
this.lblKind.Font = new System.Drawing.Font("微软雅黑", 10F);
|
|
this.lblKind.Location = new System.Drawing.Point(11, 44);
|
|
this.lblKind.Name = "lblKind";
|
|
this.lblKind.Size = new System.Drawing.Size(114, 36);
|
|
this.lblKind.TabIndex = 1;
|
|
this.lblKind.Text = "任务类别:";
|
|
this.lblKind.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
|
//
|
|
// cmbTaskKind
|
|
//
|
|
this.cmbTaskKind.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
this.cmbTaskKind.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
|
this.cmbTaskKind.Font = new System.Drawing.Font("微软雅黑", 10F);
|
|
this.cmbTaskKind.Items.AddRange(new object[] {
|
|
"Loop",
|
|
"BranchPoint",
|
|
"JoinPoint"});
|
|
this.cmbTaskKind.Location = new System.Drawing.Point(131, 47);
|
|
this.cmbTaskKind.Name = "cmbTaskKind";
|
|
this.cmbTaskKind.Size = new System.Drawing.Size(366, 31);
|
|
this.cmbTaskKind.TabIndex = 2;
|
|
//
|
|
// lblCurrent
|
|
//
|
|
this.lblCurrent.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
this.lblCurrent.Font = new System.Drawing.Font("微软雅黑", 10F);
|
|
this.lblCurrent.Location = new System.Drawing.Point(11, 80);
|
|
this.lblCurrent.Name = "lblCurrent";
|
|
this.lblCurrent.Size = new System.Drawing.Size(114, 36);
|
|
this.lblCurrent.TabIndex = 3;
|
|
this.lblCurrent.Text = "当前站点:";
|
|
this.lblCurrent.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
|
//
|
|
// numCurrent
|
|
//
|
|
this.numCurrent.Dock = System.Windows.Forms.DockStyle.Left;
|
|
this.numCurrent.Font = new System.Drawing.Font("微软雅黑", 10F);
|
|
this.numCurrent.Location = new System.Drawing.Point(131, 83);
|
|
this.numCurrent.Maximum = new decimal(new int[] {
|
|
1000000,
|
|
0,
|
|
0,
|
|
0});
|
|
this.numCurrent.Name = "numCurrent";
|
|
this.numCurrent.Size = new System.Drawing.Size(120, 29);
|
|
this.numCurrent.TabIndex = 4;
|
|
//
|
|
// lblTarget
|
|
//
|
|
this.lblTarget.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
this.lblTarget.Font = new System.Drawing.Font("微软雅黑", 10F);
|
|
this.lblTarget.Location = new System.Drawing.Point(11, 116);
|
|
this.lblTarget.Name = "lblTarget";
|
|
this.lblTarget.Size = new System.Drawing.Size(114, 36);
|
|
this.lblTarget.TabIndex = 5;
|
|
this.lblTarget.Text = "目标站点:";
|
|
this.lblTarget.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
|
//
|
|
// numTarget
|
|
//
|
|
this.numTarget.Dock = System.Windows.Forms.DockStyle.Left;
|
|
this.numTarget.Font = new System.Drawing.Font("微软雅黑", 10F);
|
|
this.numTarget.Location = new System.Drawing.Point(131, 119);
|
|
this.numTarget.Maximum = new decimal(new int[] {
|
|
1000000,
|
|
0,
|
|
0,
|
|
0});
|
|
this.numTarget.Name = "numTarget";
|
|
this.numTarget.Size = new System.Drawing.Size(120, 29);
|
|
this.numTarget.TabIndex = 6;
|
|
//
|
|
// lblTraffic
|
|
//
|
|
this.lblTraffic.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
this.lblTraffic.Font = new System.Drawing.Font("微软雅黑", 10F);
|
|
this.lblTraffic.Location = new System.Drawing.Point(11, 152);
|
|
this.lblTraffic.Name = "lblTraffic";
|
|
this.lblTraffic.Size = new System.Drawing.Size(114, 36);
|
|
this.lblTraffic.TabIndex = 7;
|
|
this.lblTraffic.Text = "流量控制:";
|
|
this.lblTraffic.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
|
//
|
|
// numTraffic
|
|
//
|
|
this.numTraffic.Dock = System.Windows.Forms.DockStyle.Left;
|
|
this.numTraffic.Font = new System.Drawing.Font("微软雅黑", 10F);
|
|
this.numTraffic.Location = new System.Drawing.Point(131, 155);
|
|
this.numTraffic.Maximum = new decimal(new int[] {
|
|
1000,
|
|
0,
|
|
0,
|
|
0});
|
|
this.numTraffic.Name = "numTraffic";
|
|
this.numTraffic.Size = new System.Drawing.Size(120, 29);
|
|
this.numTraffic.TabIndex = 8;
|
|
//
|
|
// lblPriority
|
|
//
|
|
this.lblPriority.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
this.lblPriority.Font = new System.Drawing.Font("微软雅黑", 10F);
|
|
this.lblPriority.Location = new System.Drawing.Point(11, 188);
|
|
this.lblPriority.Name = "lblPriority";
|
|
this.lblPriority.Size = new System.Drawing.Size(114, 36);
|
|
this.lblPriority.TabIndex = 9;
|
|
this.lblPriority.Text = "优先级:";
|
|
this.lblPriority.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
|
//
|
|
// numPriority
|
|
//
|
|
this.numPriority.Dock = System.Windows.Forms.DockStyle.Left;
|
|
this.numPriority.Font = new System.Drawing.Font("微软雅黑", 10F);
|
|
this.numPriority.Location = new System.Drawing.Point(131, 191);
|
|
this.numPriority.Name = "numPriority";
|
|
this.numPriority.Size = new System.Drawing.Size(120, 29);
|
|
this.numPriority.TabIndex = 10;
|
|
this.numPriority.Value = new decimal(new int[] {
|
|
1,
|
|
0,
|
|
0,
|
|
0});
|
|
//
|
|
// lblVia
|
|
//
|
|
this.lblVia.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
this.lblVia.Font = new System.Drawing.Font("微软雅黑", 10F);
|
|
this.lblVia.Location = new System.Drawing.Point(11, 224);
|
|
this.lblVia.Name = "lblVia";
|
|
this.lblVia.Size = new System.Drawing.Size(114, 36);
|
|
this.lblVia.TabIndex = 11;
|
|
this.lblVia.Text = "途径点:";
|
|
this.lblVia.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
|
//
|
|
// chkViaPoint
|
|
//
|
|
this.chkViaPoint.Dock = System.Windows.Forms.DockStyle.Left;
|
|
this.chkViaPoint.Font = new System.Drawing.Font("微软雅黑", 10F);
|
|
this.chkViaPoint.Location = new System.Drawing.Point(131, 227);
|
|
this.chkViaPoint.Name = "chkViaPoint";
|
|
this.chkViaPoint.Size = new System.Drawing.Size(104, 30);
|
|
this.chkViaPoint.TabIndex = 12;
|
|
this.chkViaPoint.Text = "是";
|
|
//
|
|
// lblStartType
|
|
//
|
|
this.lblStartType.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
this.lblStartType.Font = new System.Drawing.Font("微软雅黑", 10F);
|
|
this.lblStartType.Location = new System.Drawing.Point(11, 260);
|
|
this.lblStartType.Name = "lblStartType";
|
|
this.lblStartType.Size = new System.Drawing.Size(114, 36);
|
|
this.lblStartType.TabIndex = 13;
|
|
this.lblStartType.Text = "启动类型:";
|
|
this.lblStartType.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
|
//
|
|
// cmbStartType
|
|
//
|
|
this.cmbStartType.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
this.cmbStartType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
|
this.cmbStartType.Font = new System.Drawing.Font("微软雅黑", 10F);
|
|
this.cmbStartType.Items.AddRange(new object[] {
|
|
"Api",
|
|
"Plc",
|
|
"ButtonBox",
|
|
"AutoLoop",
|
|
"Charge"});
|
|
this.cmbStartType.Location = new System.Drawing.Point(131, 263);
|
|
this.cmbStartType.Name = "cmbStartType";
|
|
this.cmbStartType.Size = new System.Drawing.Size(366, 31);
|
|
this.cmbStartType.TabIndex = 14;
|
|
//
|
|
// flpButtons
|
|
//
|
|
this.flpButtons.AutoSize = true;
|
|
this.flpButtons.Controls.Add(this.btnSave);
|
|
this.flpButtons.Controls.Add(this.btnCancel);
|
|
this.flpButtons.Dock = System.Windows.Forms.DockStyle.Left;
|
|
this.flpButtons.Location = new System.Drawing.Point(131, 299);
|
|
this.flpButtons.Name = "flpButtons";
|
|
this.flpButtons.Size = new System.Drawing.Size(292, 262);
|
|
this.flpButtons.TabIndex = 15;
|
|
//
|
|
// 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(3, 3);
|
|
this.btnSave.Name = "btnSave";
|
|
this.btnSave.Size = new System.Drawing.Size(140, 40);
|
|
this.btnSave.TabIndex = 0;
|
|
this.btnSave.Text = "保存";
|
|
this.btnSave.UseVisualStyleBackColor = false;
|
|
this.btnSave.Click += new System.EventHandler(this.btnSave_Click);
|
|
//
|
|
// btnCancel
|
|
//
|
|
this.btnCancel.BackColor = System.Drawing.SystemColors.Control;
|
|
this.btnCancel.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
|
this.btnCancel.Font = new System.Drawing.Font("微软雅黑", 11F);
|
|
this.btnCancel.Location = new System.Drawing.Point(149, 3);
|
|
this.btnCancel.Name = "btnCancel";
|
|
this.btnCancel.Size = new System.Drawing.Size(140, 40);
|
|
this.btnCancel.TabIndex = 1;
|
|
this.btnCancel.Text = "取消";
|
|
this.btnCancel.UseVisualStyleBackColor = false;
|
|
this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
|
|
//
|
|
// btnEdit
|
|
//
|
|
this.btnEdit.Location = new System.Drawing.Point(0, 0);
|
|
this.btnEdit.Name = "btnEdit";
|
|
this.btnEdit.Size = new System.Drawing.Size(75, 23);
|
|
this.btnEdit.TabIndex = 0;
|
|
this.btnEdit.Visible = false;
|
|
//
|
|
// btnDelete
|
|
//
|
|
this.btnDelete.Location = new System.Drawing.Point(0, 0);
|
|
this.btnDelete.Name = "btnDelete";
|
|
this.btnDelete.Size = new System.Drawing.Size(75, 23);
|
|
this.btnDelete.TabIndex = 0;
|
|
this.btnDelete.Visible = false;
|
|
//
|
|
// LoopViewer
|
|
//
|
|
this.ClientSize = new System.Drawing.Size(1200, 600);
|
|
this.Controls.Add(this.splitContainer);
|
|
this.Font = new System.Drawing.Font("微软雅黑", 9F);
|
|
this.MinimumSize = new System.Drawing.Size(1000, 420);
|
|
this.Name = "LoopViewer";
|
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
|
this.Text = "任务列表管理器";
|
|
this.splitContainer.Panel1.ResumeLayout(false);
|
|
this.splitContainer.Panel2.ResumeLayout(false);
|
|
((System.ComponentModel.ISupportInitialize)(this.splitContainer)).EndInit();
|
|
this.splitContainer.ResumeLayout(false);
|
|
this.pnlMiddle.ResumeLayout(false);
|
|
this.flpMiddle.ResumeLayout(false);
|
|
this.grpEdit.ResumeLayout(false);
|
|
this.tlpEdit.ResumeLayout(false);
|
|
this.tlpEdit.PerformLayout();
|
|
((System.ComponentModel.ISupportInitialize)(this.numCurrent)).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.numTarget)).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.numTraffic)).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.numPriority)).EndInit();
|
|
this.flpButtons.ResumeLayout(false);
|
|
this.ResumeLayout(false);
|
|
|
|
}
|
|
}
|
|
} |