692 lines
33 KiB
C#
692 lines
33 KiB
C#
namespace XP.Hardware.RaySource.Comet.Host
|
|
{
|
|
partial class XplorePlaneCometHost
|
|
{
|
|
private System.ComponentModel.IContainer components = null;
|
|
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
if (disposing)
|
|
{
|
|
if (_notifyIcon != null)
|
|
{
|
|
_notifyIcon.Visible = false;
|
|
_notifyIcon.Dispose();
|
|
_notifyIcon = null;
|
|
}
|
|
if (components != null)
|
|
{
|
|
components.Dispose();
|
|
}
|
|
}
|
|
base.Dispose(disposing);
|
|
}
|
|
|
|
#region Windows 窗体设计器生成的代码
|
|
|
|
private void InitializeComponent()
|
|
{
|
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(XplorePlaneCometHost));
|
|
this._mainLayout = new System.Windows.Forms.TableLayoutPanel();
|
|
this._operationPanel = new System.Windows.Forms.Panel();
|
|
this._connGroup = new System.Windows.Forms.GroupBox();
|
|
this._lblIpAddress = new System.Windows.Forms.Label();
|
|
this._txtIpAddress = new System.Windows.Forms.TextBox();
|
|
this._lblPort = new System.Windows.Forms.Label();
|
|
this._nudPort = new System.Windows.Forms.NumericUpDown();
|
|
this._lblCpuName = new System.Windows.Forms.Label();
|
|
this._txtCpuName = new System.Windows.Forms.TextBox();
|
|
this._lblSourcePort = new System.Windows.Forms.Label();
|
|
this._nudSourcePort = new System.Windows.Forms.NumericUpDown();
|
|
this._lblStationNumber = new System.Windows.Forms.Label();
|
|
this._nudStationNumber = new System.Windows.Forms.NumericUpDown();
|
|
this._btnInitialize = new System.Windows.Forms.Button();
|
|
this._btnConnectVariables = new System.Windows.Forms.Button();
|
|
this._btnDisconnect = new System.Windows.Forms.Button();
|
|
this._lblConnectionState = new System.Windows.Forms.Label();
|
|
this._lblPviState = new System.Windows.Forms.Label();
|
|
this._lblHeartbeat = new System.Windows.Forms.Label();
|
|
this._xrayGroup = new System.Windows.Forms.GroupBox();
|
|
this._btnTurnOn = new System.Windows.Forms.Button();
|
|
this._btnTurnOff = new System.Windows.Forms.Button();
|
|
this._paramGroup = new System.Windows.Forms.GroupBox();
|
|
this._lblVoltage = new System.Windows.Forms.Label();
|
|
this._nudVoltage = new System.Windows.Forms.NumericUpDown();
|
|
this._btnSetVoltage = new System.Windows.Forms.Button();
|
|
this._lblCurrent = new System.Windows.Forms.Label();
|
|
this._nudCurrent = new System.Windows.Forms.NumericUpDown();
|
|
this._btnSetCurrent = new System.Windows.Forms.Button();
|
|
this._statusGroup = new System.Windows.Forms.GroupBox();
|
|
this._btnReadVoltage = new System.Windows.Forms.Button();
|
|
this._btnReadCurrent = new System.Windows.Forms.Button();
|
|
this._btnReadSystemStatus = new System.Windows.Forms.Button();
|
|
this._btnReadErrors = new System.Windows.Forms.Button();
|
|
this._maintGroup = new System.Windows.Forms.GroupBox();
|
|
this._btnWarmUp = new System.Windows.Forms.Button();
|
|
this._btnTraining = new System.Windows.Forms.Button();
|
|
this._btnFilamentCalibration = new System.Windows.Forms.Button();
|
|
this._btnAutoCenter = new System.Windows.Forms.Button();
|
|
this._btnTxiOn = new System.Windows.Forms.Button();
|
|
this._btnTxiOff = new System.Windows.Forms.Button();
|
|
this._btnForceExit = new System.Windows.Forms.Button();
|
|
this._logGroup = new System.Windows.Forms.GroupBox();
|
|
this._rtbLog = new System.Windows.Forms.RichTextBox();
|
|
this._mainLayout.SuspendLayout();
|
|
this._operationPanel.SuspendLayout();
|
|
this._connGroup.SuspendLayout();
|
|
((System.ComponentModel.ISupportInitialize)(this._nudPort)).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)(this._nudSourcePort)).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)(this._nudStationNumber)).BeginInit();
|
|
this._xrayGroup.SuspendLayout();
|
|
this._paramGroup.SuspendLayout();
|
|
((System.ComponentModel.ISupportInitialize)(this._nudVoltage)).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)(this._nudCurrent)).BeginInit();
|
|
this._statusGroup.SuspendLayout();
|
|
this._maintGroup.SuspendLayout();
|
|
this._logGroup.SuspendLayout();
|
|
this.SuspendLayout();
|
|
//
|
|
// _mainLayout
|
|
//
|
|
this._mainLayout.ColumnCount = 1;
|
|
this._mainLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F));
|
|
this._mainLayout.Controls.Add(this._operationPanel, 0, 0);
|
|
this._mainLayout.Controls.Add(this._logGroup, 0, 1);
|
|
this._mainLayout.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
this._mainLayout.Location = new System.Drawing.Point(0, 0);
|
|
this._mainLayout.Name = "_mainLayout";
|
|
this._mainLayout.Padding = new System.Windows.Forms.Padding(8);
|
|
this._mainLayout.RowCount = 2;
|
|
this._mainLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 450F));
|
|
this._mainLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
|
|
this._mainLayout.Size = new System.Drawing.Size(780, 700);
|
|
this._mainLayout.TabIndex = 0;
|
|
//
|
|
// _operationPanel
|
|
//
|
|
this._operationPanel.Controls.Add(this._connGroup);
|
|
this._operationPanel.Controls.Add(this._xrayGroup);
|
|
this._operationPanel.Controls.Add(this._paramGroup);
|
|
this._operationPanel.Controls.Add(this._statusGroup);
|
|
this._operationPanel.Controls.Add(this._maintGroup);
|
|
this._operationPanel.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
this._operationPanel.Location = new System.Drawing.Point(11, 11);
|
|
this._operationPanel.Name = "_operationPanel";
|
|
this._operationPanel.Size = new System.Drawing.Size(758, 444);
|
|
this._operationPanel.TabIndex = 0;
|
|
//
|
|
// _connGroup
|
|
//
|
|
this._connGroup.Controls.Add(this._lblIpAddress);
|
|
this._connGroup.Controls.Add(this._txtIpAddress);
|
|
this._connGroup.Controls.Add(this._lblPort);
|
|
this._connGroup.Controls.Add(this._nudPort);
|
|
this._connGroup.Controls.Add(this._lblCpuName);
|
|
this._connGroup.Controls.Add(this._txtCpuName);
|
|
this._connGroup.Controls.Add(this._lblSourcePort);
|
|
this._connGroup.Controls.Add(this._nudSourcePort);
|
|
this._connGroup.Controls.Add(this._lblStationNumber);
|
|
this._connGroup.Controls.Add(this._nudStationNumber);
|
|
this._connGroup.Controls.Add(this._btnInitialize);
|
|
this._connGroup.Controls.Add(this._btnConnectVariables);
|
|
this._connGroup.Controls.Add(this._btnDisconnect);
|
|
this._connGroup.Controls.Add(this._lblConnectionState);
|
|
this._connGroup.Controls.Add(this._lblPviState);
|
|
this._connGroup.Controls.Add(this._lblHeartbeat);
|
|
this._connGroup.Location = new System.Drawing.Point(0, 0);
|
|
this._connGroup.Name = "_connGroup";
|
|
this._connGroup.Size = new System.Drawing.Size(750, 100);
|
|
this._connGroup.TabIndex = 0;
|
|
this._connGroup.TabStop = false;
|
|
this._connGroup.Text = "连接参数";
|
|
//
|
|
// _lblIpAddress
|
|
//
|
|
this._lblIpAddress.AutoSize = true;
|
|
this._lblIpAddress.Location = new System.Drawing.Point(10, 25);
|
|
this._lblIpAddress.Name = "_lblIpAddress";
|
|
this._lblIpAddress.Size = new System.Drawing.Size(85, 21);
|
|
this._lblIpAddress.TabIndex = 0;
|
|
this._lblIpAddress.Text = "IP地址:";
|
|
//
|
|
// _txtIpAddress
|
|
//
|
|
this._txtIpAddress.Location = new System.Drawing.Point(70, 22);
|
|
this._txtIpAddress.Name = "_txtIpAddress";
|
|
this._txtIpAddress.Size = new System.Drawing.Size(120, 31);
|
|
this._txtIpAddress.TabIndex = 1;
|
|
this._txtIpAddress.Text = "192.168.12.10";
|
|
//
|
|
// _lblPort
|
|
//
|
|
this._lblPort.AutoSize = true;
|
|
this._lblPort.Location = new System.Drawing.Point(200, 25);
|
|
this._lblPort.Name = "_lblPort";
|
|
this._lblPort.Size = new System.Drawing.Size(63, 21);
|
|
this._lblPort.TabIndex = 2;
|
|
this._lblPort.Text = "端口:";
|
|
//
|
|
// _nudPort
|
|
//
|
|
this._nudPort.Location = new System.Drawing.Point(240, 22);
|
|
this._nudPort.Maximum = new decimal(new int[] {
|
|
65535,
|
|
0,
|
|
0,
|
|
0});
|
|
this._nudPort.Minimum = new decimal(new int[] {
|
|
1,
|
|
0,
|
|
0,
|
|
0});
|
|
this._nudPort.Name = "_nudPort";
|
|
this._nudPort.Size = new System.Drawing.Size(70, 31);
|
|
this._nudPort.TabIndex = 3;
|
|
this._nudPort.Value = new decimal(new int[] {
|
|
11159,
|
|
0,
|
|
0,
|
|
0});
|
|
//
|
|
// _lblCpuName
|
|
//
|
|
this._lblCpuName.AutoSize = true;
|
|
this._lblCpuName.Location = new System.Drawing.Point(320, 25);
|
|
this._lblCpuName.Name = "_lblCpuName";
|
|
this._lblCpuName.Size = new System.Drawing.Size(96, 21);
|
|
this._lblCpuName.TabIndex = 4;
|
|
this._lblCpuName.Text = "CPU名称:";
|
|
//
|
|
// _txtCpuName
|
|
//
|
|
this._txtCpuName.Location = new System.Drawing.Point(390, 22);
|
|
this._txtCpuName.Name = "_txtCpuName";
|
|
this._txtCpuName.Size = new System.Drawing.Size(80, 31);
|
|
this._txtCpuName.TabIndex = 5;
|
|
this._txtCpuName.Text = "cpu";
|
|
//
|
|
// _lblSourcePort
|
|
//
|
|
this._lblSourcePort.AutoSize = true;
|
|
this._lblSourcePort.Location = new System.Drawing.Point(480, 25);
|
|
this._lblSourcePort.Name = "_lblSourcePort";
|
|
this._lblSourcePort.Size = new System.Drawing.Size(84, 21);
|
|
this._lblSourcePort.TabIndex = 6;
|
|
this._lblSourcePort.Text = "源端口:";
|
|
//
|
|
// _nudSourcePort
|
|
//
|
|
this._nudSourcePort.Location = new System.Drawing.Point(540, 22);
|
|
this._nudSourcePort.Minimum = new decimal(new int[] {
|
|
1,
|
|
0,
|
|
0,
|
|
0});
|
|
this._nudSourcePort.Name = "_nudSourcePort";
|
|
this._nudSourcePort.Size = new System.Drawing.Size(70, 31);
|
|
this._nudSourcePort.TabIndex = 7;
|
|
this._nudSourcePort.Value = new decimal(new int[] {
|
|
11,
|
|
0,
|
|
0,
|
|
0});
|
|
//
|
|
// _lblStationNumber
|
|
//
|
|
this._lblStationNumber.AutoSize = true;
|
|
this._lblStationNumber.Location = new System.Drawing.Point(620, 25);
|
|
this._lblStationNumber.Name = "_lblStationNumber";
|
|
this._lblStationNumber.Size = new System.Drawing.Size(63, 21);
|
|
this._lblStationNumber.TabIndex = 8;
|
|
this._lblStationNumber.Text = "站号:";
|
|
//
|
|
// _nudStationNumber
|
|
//
|
|
this._nudStationNumber.Location = new System.Drawing.Point(660, 22);
|
|
this._nudStationNumber.Maximum = new decimal(new int[] {
|
|
255,
|
|
0,
|
|
0,
|
|
0});
|
|
this._nudStationNumber.Name = "_nudStationNumber";
|
|
this._nudStationNumber.Size = new System.Drawing.Size(60, 31);
|
|
this._nudStationNumber.TabIndex = 9;
|
|
this._nudStationNumber.Value = new decimal(new int[] {
|
|
1,
|
|
0,
|
|
0,
|
|
0});
|
|
//
|
|
// _btnInitialize
|
|
//
|
|
this._btnInitialize.Location = new System.Drawing.Point(10, 58);
|
|
this._btnInitialize.Name = "_btnInitialize";
|
|
this._btnInitialize.Size = new System.Drawing.Size(120, 28);
|
|
this._btnInitialize.TabIndex = 10;
|
|
this._btnInitialize.Text = "初始化连接";
|
|
this._btnInitialize.Click += new System.EventHandler(this.OnInitialize);
|
|
//
|
|
// _btnConnectVariables
|
|
//
|
|
this._btnConnectVariables.Enabled = false;
|
|
this._btnConnectVariables.Location = new System.Drawing.Point(140, 58);
|
|
this._btnConnectVariables.Name = "_btnConnectVariables";
|
|
this._btnConnectVariables.Size = new System.Drawing.Size(100, 28);
|
|
this._btnConnectVariables.TabIndex = 11;
|
|
this._btnConnectVariables.Text = "连接变量";
|
|
this._btnConnectVariables.Click += new System.EventHandler(this.OnConnectVariables);
|
|
//
|
|
// _btnDisconnect
|
|
//
|
|
this._btnDisconnect.Enabled = false;
|
|
this._btnDisconnect.Location = new System.Drawing.Point(250, 58);
|
|
this._btnDisconnect.Name = "_btnDisconnect";
|
|
this._btnDisconnect.Size = new System.Drawing.Size(100, 28);
|
|
this._btnDisconnect.TabIndex = 12;
|
|
this._btnDisconnect.Text = "断开连接";
|
|
this._btnDisconnect.Click += new System.EventHandler(this.OnDisconnect);
|
|
//
|
|
// _lblConnectionState
|
|
//
|
|
this._lblConnectionState.ForeColor = System.Drawing.Color.Red;
|
|
this._lblConnectionState.Location = new System.Drawing.Point(370, 63);
|
|
this._lblConnectionState.Name = "_lblConnectionState";
|
|
this._lblConnectionState.Size = new System.Drawing.Size(174, 23);
|
|
this._lblConnectionState.TabIndex = 13;
|
|
this._lblConnectionState.Text = "状态: 未连接";
|
|
//
|
|
// _lblPviState
|
|
//
|
|
this._lblPviState.AutoSize = true;
|
|
this._lblPviState.ForeColor = System.Drawing.Color.Gray;
|
|
this._lblPviState.Location = new System.Drawing.Point(575, 63);
|
|
this._lblPviState.Name = "_lblPviState";
|
|
this._lblPviState.Size = new System.Drawing.Size(73, 21);
|
|
this._lblPviState.TabIndex = 13;
|
|
this._lblPviState.Text = "未连接";
|
|
//
|
|
// _lblHeartbeat
|
|
//
|
|
this._lblHeartbeat.Font = new System.Drawing.Font("Segoe UI", 12F);
|
|
this._lblHeartbeat.ForeColor = System.Drawing.Color.Gray;
|
|
this._lblHeartbeat.Location = new System.Drawing.Point(720, 58);
|
|
this._lblHeartbeat.Name = "_lblHeartbeat";
|
|
this._lblHeartbeat.Size = new System.Drawing.Size(24, 24);
|
|
this._lblHeartbeat.TabIndex = 15;
|
|
this._lblHeartbeat.Text = "●";
|
|
//
|
|
// _xrayGroup
|
|
//
|
|
this._xrayGroup.Controls.Add(this._btnTurnOn);
|
|
this._xrayGroup.Controls.Add(this._btnTurnOff);
|
|
this._xrayGroup.Location = new System.Drawing.Point(0, 105);
|
|
this._xrayGroup.Name = "_xrayGroup";
|
|
this._xrayGroup.Size = new System.Drawing.Size(750, 65);
|
|
this._xrayGroup.TabIndex = 1;
|
|
this._xrayGroup.TabStop = false;
|
|
this._xrayGroup.Text = "射线控制";
|
|
//
|
|
// _btnTurnOn
|
|
//
|
|
this._btnTurnOn.Enabled = false;
|
|
this._btnTurnOn.Location = new System.Drawing.Point(10, 25);
|
|
this._btnTurnOn.Name = "_btnTurnOn";
|
|
this._btnTurnOn.Size = new System.Drawing.Size(150, 28);
|
|
this._btnTurnOn.TabIndex = 0;
|
|
this._btnTurnOn.Text = "开启高压 (TurnOn)";
|
|
this._btnTurnOn.Click += new System.EventHandler(this.OnTurnOn);
|
|
//
|
|
// _btnTurnOff
|
|
//
|
|
this._btnTurnOff.Enabled = false;
|
|
this._btnTurnOff.Location = new System.Drawing.Point(170, 25);
|
|
this._btnTurnOff.Name = "_btnTurnOff";
|
|
this._btnTurnOff.Size = new System.Drawing.Size(150, 28);
|
|
this._btnTurnOff.TabIndex = 1;
|
|
this._btnTurnOff.Text = "关闭高压 (TurnOff)";
|
|
this._btnTurnOff.Click += new System.EventHandler(this.OnTurnOff);
|
|
//
|
|
// _paramGroup
|
|
//
|
|
this._paramGroup.Controls.Add(this._lblVoltage);
|
|
this._paramGroup.Controls.Add(this._nudVoltage);
|
|
this._paramGroup.Controls.Add(this._btnSetVoltage);
|
|
this._paramGroup.Controls.Add(this._lblCurrent);
|
|
this._paramGroup.Controls.Add(this._nudCurrent);
|
|
this._paramGroup.Controls.Add(this._btnSetCurrent);
|
|
this._paramGroup.Location = new System.Drawing.Point(0, 175);
|
|
this._paramGroup.Name = "_paramGroup";
|
|
this._paramGroup.Size = new System.Drawing.Size(750, 65);
|
|
this._paramGroup.TabIndex = 2;
|
|
this._paramGroup.TabStop = false;
|
|
this._paramGroup.Text = "参数设置";
|
|
//
|
|
// _lblVoltage
|
|
//
|
|
this._lblVoltage.AutoSize = true;
|
|
this._lblVoltage.Location = new System.Drawing.Point(10, 28);
|
|
this._lblVoltage.Name = "_lblVoltage";
|
|
this._lblVoltage.Size = new System.Drawing.Size(107, 21);
|
|
this._lblVoltage.TabIndex = 0;
|
|
this._lblVoltage.Text = "电压(kV):";
|
|
//
|
|
// _nudVoltage
|
|
//
|
|
this._nudVoltage.DecimalPlaces = 1;
|
|
this._nudVoltage.Location = new System.Drawing.Point(80, 25);
|
|
this._nudVoltage.Maximum = new decimal(new int[] {
|
|
300,
|
|
0,
|
|
0,
|
|
0});
|
|
this._nudVoltage.Name = "_nudVoltage";
|
|
this._nudVoltage.Size = new System.Drawing.Size(80, 31);
|
|
this._nudVoltage.TabIndex = 1;
|
|
//
|
|
// _btnSetVoltage
|
|
//
|
|
this._btnSetVoltage.Enabled = false;
|
|
this._btnSetVoltage.Location = new System.Drawing.Point(170, 23);
|
|
this._btnSetVoltage.Name = "_btnSetVoltage";
|
|
this._btnSetVoltage.Size = new System.Drawing.Size(90, 28);
|
|
this._btnSetVoltage.TabIndex = 2;
|
|
this._btnSetVoltage.Text = "设置电压";
|
|
this._btnSetVoltage.Click += new System.EventHandler(this.OnSetVoltage);
|
|
//
|
|
// _lblCurrent
|
|
//
|
|
this._lblCurrent.AutoSize = true;
|
|
this._lblCurrent.Location = new System.Drawing.Point(280, 28);
|
|
this._lblCurrent.Name = "_lblCurrent";
|
|
this._lblCurrent.Size = new System.Drawing.Size(117, 21);
|
|
this._lblCurrent.TabIndex = 3;
|
|
this._lblCurrent.Text = "电流(μA):";
|
|
//
|
|
// _nudCurrent
|
|
//
|
|
this._nudCurrent.DecimalPlaces = 1;
|
|
this._nudCurrent.Location = new System.Drawing.Point(350, 25);
|
|
this._nudCurrent.Maximum = new decimal(new int[] {
|
|
5000,
|
|
0,
|
|
0,
|
|
0});
|
|
this._nudCurrent.Name = "_nudCurrent";
|
|
this._nudCurrent.Size = new System.Drawing.Size(80, 31);
|
|
this._nudCurrent.TabIndex = 4;
|
|
//
|
|
// _btnSetCurrent
|
|
//
|
|
this._btnSetCurrent.Enabled = false;
|
|
this._btnSetCurrent.Location = new System.Drawing.Point(440, 23);
|
|
this._btnSetCurrent.Name = "_btnSetCurrent";
|
|
this._btnSetCurrent.Size = new System.Drawing.Size(90, 28);
|
|
this._btnSetCurrent.TabIndex = 5;
|
|
this._btnSetCurrent.Text = "设置电流";
|
|
this._btnSetCurrent.Click += new System.EventHandler(this.OnSetCurrent);
|
|
//
|
|
// _statusGroup
|
|
//
|
|
this._statusGroup.Controls.Add(this._btnReadVoltage);
|
|
this._statusGroup.Controls.Add(this._btnReadCurrent);
|
|
this._statusGroup.Controls.Add(this._btnReadSystemStatus);
|
|
this._statusGroup.Controls.Add(this._btnReadErrors);
|
|
this._statusGroup.Location = new System.Drawing.Point(0, 245);
|
|
this._statusGroup.Name = "_statusGroup";
|
|
this._statusGroup.Size = new System.Drawing.Size(750, 64);
|
|
this._statusGroup.TabIndex = 3;
|
|
this._statusGroup.TabStop = false;
|
|
this._statusGroup.Text = "状态读取";
|
|
//
|
|
// _btnReadVoltage
|
|
//
|
|
this._btnReadVoltage.Enabled = false;
|
|
this._btnReadVoltage.Location = new System.Drawing.Point(10, 25);
|
|
this._btnReadVoltage.Name = "_btnReadVoltage";
|
|
this._btnReadVoltage.Size = new System.Drawing.Size(100, 28);
|
|
this._btnReadVoltage.TabIndex = 0;
|
|
this._btnReadVoltage.Text = "读取电压";
|
|
this._btnReadVoltage.Click += new System.EventHandler(this.OnReadVoltage);
|
|
//
|
|
// _btnReadCurrent
|
|
//
|
|
this._btnReadCurrent.Enabled = false;
|
|
this._btnReadCurrent.Location = new System.Drawing.Point(120, 25);
|
|
this._btnReadCurrent.Name = "_btnReadCurrent";
|
|
this._btnReadCurrent.Size = new System.Drawing.Size(100, 28);
|
|
this._btnReadCurrent.TabIndex = 1;
|
|
this._btnReadCurrent.Text = "读取电流";
|
|
this._btnReadCurrent.Click += new System.EventHandler(this.OnReadCurrent);
|
|
//
|
|
// _btnReadSystemStatus
|
|
//
|
|
this._btnReadSystemStatus.Enabled = false;
|
|
this._btnReadSystemStatus.Location = new System.Drawing.Point(230, 25);
|
|
this._btnReadSystemStatus.Name = "_btnReadSystemStatus";
|
|
this._btnReadSystemStatus.Size = new System.Drawing.Size(120, 28);
|
|
this._btnReadSystemStatus.TabIndex = 2;
|
|
this._btnReadSystemStatus.Text = "读取系统状态";
|
|
this._btnReadSystemStatus.Click += new System.EventHandler(this.OnReadSystemStatus);
|
|
//
|
|
// _btnReadErrors
|
|
//
|
|
this._btnReadErrors.Enabled = false;
|
|
this._btnReadErrors.Location = new System.Drawing.Point(360, 25);
|
|
this._btnReadErrors.Name = "_btnReadErrors";
|
|
this._btnReadErrors.Size = new System.Drawing.Size(120, 28);
|
|
this._btnReadErrors.TabIndex = 3;
|
|
this._btnReadErrors.Text = "读取错误信息";
|
|
this._btnReadErrors.Click += new System.EventHandler(this.OnReadErrors);
|
|
//
|
|
// _maintGroup
|
|
//
|
|
this._maintGroup.Controls.Add(this._btnWarmUp);
|
|
this._maintGroup.Controls.Add(this._btnTraining);
|
|
this._maintGroup.Controls.Add(this._btnFilamentCalibration);
|
|
this._maintGroup.Controls.Add(this._btnAutoCenter);
|
|
this._maintGroup.Controls.Add(this._btnTxiOn);
|
|
this._maintGroup.Controls.Add(this._btnTxiOff);
|
|
this._maintGroup.Controls.Add(this._btnForceExit);
|
|
this._maintGroup.Location = new System.Drawing.Point(0, 317);
|
|
this._maintGroup.Name = "_maintGroup";
|
|
this._maintGroup.Size = new System.Drawing.Size(750, 76);
|
|
this._maintGroup.TabIndex = 4;
|
|
this._maintGroup.TabStop = false;
|
|
this._maintGroup.Text = "维护操作";
|
|
//
|
|
// _btnWarmUp
|
|
//
|
|
this._btnWarmUp.Enabled = false;
|
|
this._btnWarmUp.Location = new System.Drawing.Point(10, 25);
|
|
this._btnWarmUp.Name = "_btnWarmUp";
|
|
this._btnWarmUp.Size = new System.Drawing.Size(100, 28);
|
|
this._btnWarmUp.TabIndex = 0;
|
|
this._btnWarmUp.Text = "暖机设置";
|
|
this._btnWarmUp.Click += new System.EventHandler(this.OnWarmUp);
|
|
//
|
|
// _btnTraining
|
|
//
|
|
this._btnTraining.Enabled = false;
|
|
this._btnTraining.Location = new System.Drawing.Point(120, 25);
|
|
this._btnTraining.Name = "_btnTraining";
|
|
this._btnTraining.Size = new System.Drawing.Size(100, 28);
|
|
this._btnTraining.TabIndex = 1;
|
|
this._btnTraining.Text = "训机设置";
|
|
this._btnTraining.Click += new System.EventHandler(this.OnTraining);
|
|
//
|
|
// _btnFilamentCalibration
|
|
//
|
|
this._btnFilamentCalibration.Enabled = false;
|
|
this._btnFilamentCalibration.Location = new System.Drawing.Point(230, 25);
|
|
this._btnFilamentCalibration.Name = "_btnFilamentCalibration";
|
|
this._btnFilamentCalibration.Size = new System.Drawing.Size(100, 28);
|
|
this._btnFilamentCalibration.TabIndex = 2;
|
|
this._btnFilamentCalibration.Text = "灯丝校准";
|
|
this._btnFilamentCalibration.Click += new System.EventHandler(this.OnFilamentCalibration);
|
|
//
|
|
// _btnAutoCenter
|
|
//
|
|
this._btnAutoCenter.Enabled = false;
|
|
this._btnAutoCenter.Location = new System.Drawing.Point(340, 25);
|
|
this._btnAutoCenter.Name = "_btnAutoCenter";
|
|
this._btnAutoCenter.Size = new System.Drawing.Size(100, 28);
|
|
this._btnAutoCenter.TabIndex = 3;
|
|
this._btnAutoCenter.Text = "自动定心";
|
|
this._btnAutoCenter.Click += new System.EventHandler(this.OnAutoCenter);
|
|
//
|
|
// _btnTxiOn
|
|
//
|
|
this._btnTxiOn.Enabled = false;
|
|
this._btnTxiOn.Location = new System.Drawing.Point(450, 25);
|
|
this._btnTxiOn.Name = "_btnTxiOn";
|
|
this._btnTxiOn.Size = new System.Drawing.Size(100, 28);
|
|
this._btnTxiOn.TabIndex = 4;
|
|
this._btnTxiOn.Text = "TXI ON";
|
|
this._btnTxiOn.Click += new System.EventHandler(this.OnTxiOn);
|
|
//
|
|
// _btnTxiOff
|
|
//
|
|
this._btnTxiOff.Enabled = false;
|
|
this._btnTxiOff.Location = new System.Drawing.Point(560, 25);
|
|
this._btnTxiOff.Name = "_btnTxiOff";
|
|
this._btnTxiOff.Size = new System.Drawing.Size(100, 28);
|
|
this._btnTxiOff.TabIndex = 5;
|
|
this._btnTxiOff.Text = "TXI OFF";
|
|
this._btnTxiOff.Click += new System.EventHandler(this.OnTxiOff);
|
|
//
|
|
// _btnForceExit
|
|
//
|
|
this._btnForceExit.BackColor = System.Drawing.Color.DarkRed;
|
|
this._btnForceExit.ForeColor = System.Drawing.Color.White;
|
|
this._btnForceExit.Location = new System.Drawing.Point(670, 25);
|
|
this._btnForceExit.Name = "_btnForceExit";
|
|
this._btnForceExit.Size = new System.Drawing.Size(75, 28);
|
|
this._btnForceExit.TabIndex = 6;
|
|
this._btnForceExit.Text = "强制退出";
|
|
this._btnForceExit.UseVisualStyleBackColor = false;
|
|
this._btnForceExit.Click += new System.EventHandler(this.OnForceExitClick);
|
|
//
|
|
// _logGroup
|
|
//
|
|
this._logGroup.Controls.Add(this._rtbLog);
|
|
this._logGroup.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
this._logGroup.Location = new System.Drawing.Point(11, 461);
|
|
this._logGroup.Name = "_logGroup";
|
|
this._logGroup.Size = new System.Drawing.Size(758, 228);
|
|
this._logGroup.TabIndex = 1;
|
|
this._logGroup.TabStop = false;
|
|
this._logGroup.Text = "日志输出";
|
|
//
|
|
// _rtbLog
|
|
//
|
|
this._rtbLog.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(30)))), ((int)(((byte)(30)))));
|
|
this._rtbLog.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
this._rtbLog.Font = new System.Drawing.Font("Consolas", 9F);
|
|
this._rtbLog.ForeColor = System.Drawing.Color.LightGreen;
|
|
this._rtbLog.Location = new System.Drawing.Point(3, 27);
|
|
this._rtbLog.Name = "_rtbLog";
|
|
this._rtbLog.ReadOnly = true;
|
|
this._rtbLog.Size = new System.Drawing.Size(752, 198);
|
|
this._rtbLog.TabIndex = 0;
|
|
this._rtbLog.Text = "";
|
|
//
|
|
// XplorePlaneCometHost
|
|
//
|
|
this.ClientSize = new System.Drawing.Size(780, 700);
|
|
this.Controls.Add(this._mainLayout);
|
|
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
|
this.MinimumSize = new System.Drawing.Size(780, 600);
|
|
this.Name = "XplorePlaneCometHost";
|
|
this.ShowInTaskbar = false;
|
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
|
this.Text = "XplorePlane Comet Host";
|
|
this.WindowState = System.Windows.Forms.FormWindowState.Minimized;
|
|
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.OnFormClosing);
|
|
this._mainLayout.ResumeLayout(false);
|
|
this._operationPanel.ResumeLayout(false);
|
|
this._connGroup.ResumeLayout(false);
|
|
this._connGroup.PerformLayout();
|
|
((System.ComponentModel.ISupportInitialize)(this._nudPort)).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)(this._nudSourcePort)).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)(this._nudStationNumber)).EndInit();
|
|
this._xrayGroup.ResumeLayout(false);
|
|
this._paramGroup.ResumeLayout(false);
|
|
this._paramGroup.PerformLayout();
|
|
((System.ComponentModel.ISupportInitialize)(this._nudVoltage)).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)(this._nudCurrent)).EndInit();
|
|
this._statusGroup.ResumeLayout(false);
|
|
this._maintGroup.ResumeLayout(false);
|
|
this._logGroup.ResumeLayout(false);
|
|
this.ResumeLayout(false);
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
// 布局控件
|
|
private System.Windows.Forms.TableLayoutPanel _mainLayout;
|
|
private System.Windows.Forms.Panel _operationPanel;
|
|
private System.Windows.Forms.GroupBox _connGroup;
|
|
private System.Windows.Forms.GroupBox _xrayGroup;
|
|
private System.Windows.Forms.GroupBox _paramGroup;
|
|
private System.Windows.Forms.GroupBox _statusGroup;
|
|
private System.Windows.Forms.GroupBox _logGroup;
|
|
|
|
// 连接参数标签
|
|
private System.Windows.Forms.Label _lblIpAddress;
|
|
private System.Windows.Forms.Label _lblPort;
|
|
private System.Windows.Forms.Label _lblCpuName;
|
|
private System.Windows.Forms.Label _lblSourcePort;
|
|
private System.Windows.Forms.Label _lblStationNumber;
|
|
|
|
// 连接参数输入
|
|
private System.Windows.Forms.TextBox _txtIpAddress;
|
|
private System.Windows.Forms.NumericUpDown _nudPort;
|
|
private System.Windows.Forms.TextBox _txtCpuName;
|
|
private System.Windows.Forms.NumericUpDown _nudSourcePort;
|
|
private System.Windows.Forms.NumericUpDown _nudStationNumber;
|
|
|
|
// 连接操作按钮
|
|
private System.Windows.Forms.Button _btnInitialize;
|
|
private System.Windows.Forms.Button _btnConnectVariables;
|
|
private System.Windows.Forms.Button _btnDisconnect;
|
|
private System.Windows.Forms.Label _lblConnectionState;
|
|
private System.Windows.Forms.Label _lblPviState;
|
|
private System.Windows.Forms.Label _lblHeartbeat;
|
|
|
|
// 射线控制按钮
|
|
private System.Windows.Forms.Button _btnTurnOn;
|
|
private System.Windows.Forms.Button _btnTurnOff;
|
|
|
|
// 参数设置
|
|
private System.Windows.Forms.Label _lblVoltage;
|
|
private System.Windows.Forms.NumericUpDown _nudVoltage;
|
|
private System.Windows.Forms.Button _btnSetVoltage;
|
|
private System.Windows.Forms.Label _lblCurrent;
|
|
private System.Windows.Forms.NumericUpDown _nudCurrent;
|
|
private System.Windows.Forms.Button _btnSetCurrent;
|
|
|
|
// 状态读取按钮
|
|
private System.Windows.Forms.Button _btnReadVoltage;
|
|
private System.Windows.Forms.Button _btnReadCurrent;
|
|
private System.Windows.Forms.Button _btnReadSystemStatus;
|
|
private System.Windows.Forms.Button _btnReadErrors;
|
|
|
|
// 维护操作
|
|
private System.Windows.Forms.GroupBox _maintGroup;
|
|
private System.Windows.Forms.Button _btnWarmUp;
|
|
private System.Windows.Forms.Button _btnTraining;
|
|
private System.Windows.Forms.Button _btnFilamentCalibration;
|
|
private System.Windows.Forms.Button _btnAutoCenter;
|
|
private System.Windows.Forms.Button _btnTxiOn;
|
|
private System.Windows.Forms.Button _btnTxiOff;
|
|
private System.Windows.Forms.Button _btnForceExit;
|
|
|
|
// 日志输出
|
|
private System.Windows.Forms.RichTextBox _rtbLog;
|
|
|
|
// 托盘图标
|
|
private System.Windows.Forms.NotifyIcon _notifyIcon;
|
|
}
|
|
}
|