Refresh / Update WPF controls

本文介绍了一种在WPF中更新UI元素的有效方法,通过调用Dispatcher的Invoke方法并使用Render优先级,使得UI能够在后台操作期间及时刷新显示最新状态。
Refresh / Update WPF controls

Sometime in the past, a friend asked me how to update a control to show status while his code is doing a loop of stuff.  Essentially changing the text of a label (or sophisticatedly we can say a text-based progress bar).  In my past coding with MFC and WinForms, it's fairly easy enough, you just invalidate and do an update (Invalidate / UpdateWindow in MFC or Invalidate / Update in WinForms).  This approach also coincides with how Windows UI operate, where you specify the region that needs to be redrawn and then you send a message to the message pump for that control to paint itself.

So, I expected something similar (if not exactly the same) to also be present in WPF; much to my surprise, there is no equivalent.   All my internet searches actually shows how to do this using background thread - it is the approach that needs to be taken in a proper programming context, however there are times when you just want to do something quick & dirty or you want to augment an existing app / port where you don't want to introduce new elements.  There are also considerations to be made when both UI and worker thread access the same data, especially with regard to data binding (see my post about collection change not supporting multi-threading out of the box).

So, I've decided to add a helper method to refresh a WPF control.  I really appreciated the Refresh method in WinForms (which executes both Invalidate & Update), so I'm renaming my method to be Refresh as well.  The code snippet below also show some C# specific techniques, namely: anonymous delegates and extension methods.

 

public static class ExtensionMethods

{

   private static Action EmptyDelegate = delegate() { };

 

   public static void Refresh(this UIElement uiElement)

   {
      uiElement.Dispatcher.Invoke(DispatcherPriority.Render, EmptyDelegate);
   }
}

private void LoopingMethod()

{
   for (int i = 0; i < 10; i++)
   {
      label1.Content = i.ToString();
      label1.Refresh();
      Thread.Sleep(500);
   }
}


The LoopingMethod is just the method I use in my Window class to update the label (updating the progress) and then the code does some heavy lifting (Sleep ).  The Refresh method is the extension method that takes any UI element and then calls that UIElement's Dispatcher's Invoke method.  The trick is to call the Invoke method with DispatcherPriority of Render or lower.  Since we don't want to do anything, I created an empty delegate.  So how come this achieves refresh functionality?

When the DispatcherPriority is set to Render (or lower), the code will then execute all operations that are of that priority or higher.  In the example, the code already sets label1.Content to something else, which will result in a render operation.  So by calling Dispatcher.Invoke, the code essentially asks the system to execute all operations that are Render or higher priority, thus the control will then render itself (drawing the new content).  Afterwards, it will then execute the provided delegate (which is our empty method).

Pretty weird; there was a post somewhere in my google search that led me this route, and I was surprised as to how it worked.  I couldn't find it anymore, but credit where credit is due, someone else figured out that Invoke-ing a Render or lower priority task will result in the UI being redrawn.

Update (January 20, 2009):

A Commenter asked for a full sample, so I've uploaded one here.  I don't speak Spanish, but Google translator was working great!

Update (February 26, 2009):

A Commenter asked for a VB.NET sample, so I've uploaded one here.

Update (January 13, 2010):

Apparently geekswithblogs doesn't allow linking non-image files (thus the samples link doesn't work anymore).  Samples are now being put in my Google Sites site.  C# sample here and VB.NET sample here.

namespace WindowsFormsApp1.UserControls.SECS_Clinet { partial class secsClient { /// <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 组件设计器生成的代码 /// <summary> /// 设计器支持所需的方法 - 不要修改 /// 使用代码编辑器修改此方法的内容。 /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); this.btnMonitor = new System.Windows.Forms.Button(); this.label5 = new System.Windows.Forms.Label(); this.btnGetEC = new System.Windows.Forms.Button(); this.txtUpdateEC = new System.Windows.Forms.TextBox(); this.lblUpdateEC = new System.Windows.Forms.Label(); this.lblUpdateECFormat = new System.Windows.Forms.Label(); this.cmbUpdateECFormat = new System.Windows.Forms.ComboBox(); this.txtUpdateECID = new System.Windows.Forms.TextBox(); this.lblUpdateECID = new System.Windows.Forms.Label(); this.btnUpdateEC = new System.Windows.Forms.Button(); this.btnOnLineLocal = new System.Windows.Forms.Button(); this.btnOnLineRemote = new System.Windows.Forms.Button(); this.btnOffLine = new System.Windows.Forms.Button(); this.label3 = new System.Windows.Forms.Label(); this.btnDisableComm = new System.Windows.Forms.Button(); this.btnEnableComm = new System.Windows.Forms.Button(); this.label2 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label(); this.btnStop = new System.Windows.Forms.Button(); this.btnStart = new System.Windows.Forms.Button(); this.groupBox18 = new System.Windows.Forms.GroupBox(); this.lblText = new System.Windows.Forms.Label(); this.lblTID = new System.Windows.Forms.Label(); this.btnTerminalRequest = new System.Windows.Forms.Button(); this.txtText = new System.Windows.Forms.TextBox(); this.txtTID = new System.Windows.Forms.TextBox(); this.groupBox5 = new System.Windows.Forms.GroupBox(); this.lblEventID = new System.Windows.Forms.Label(); this.btnEventReport = new System.Windows.Forms.Button(); this.txtEventID = new System.Windows.Forms.TextBox(); this.lblPPBodyPPID = new System.Windows.Forms.Label(); this.btnSendS7F25 = new System.Windows.Forms.Button(); this.btnSendS7F23 = new System.Windows.Forms.Button(); this.btnSendS7F5 = new System.Windows.Forms.Button(); this.btnSendS7F3 = new System.Windows.Forms.Button(); this.groupBox21 = new System.Windows.Forms.GroupBox(); this.rdoMultiblockNotAllowedFalse = new System.Windows.Forms.RadioButton(); this.lblMultiblockNotAllowed = new System.Windows.Forms.Label(); this.rdoMultiblockNotAllowedTrue = new System.Windows.Forms.RadioButton(); this.btnTerminalACKC10 = new System.Windows.Forms.Button(); this.lblTerminalACKC10 = new System.Windows.Forms.Label(); this.txtTerminalACKC10 = new System.Windows.Forms.TextBox(); this.label4 = new System.Windows.Forms.Label(); this.groupBox17 = new System.Windows.Forms.GroupBox(); this.btnEQPDateAndTimeRequest = new System.Windows.Forms.Button(); this.panel1 = new System.Windows.Forms.Panel(); this.tbcLog = new System.Windows.Forms.TabControl(); this.tbpDriverLog = new System.Windows.Forms.TabPage(); this.rtbDriverLog = new System.Windows.Forms.RichTextBox(); this.tbpGemLog = new System.Windows.Forms.TabPage(); this.rtbGemLog = new System.Windows.Forms.RichTextBox(); this.tbpSecsLog = new System.Windows.Forms.TabPage(); this.rtbSecsLog = new System.Windows.Forms.RichTextBox(); this.tbpEQPLog = new System.Windows.Forms.TabPage(); this.rtbEqpLog = new System.Windows.Forms.RichTextBox(); this.tabMonitor = new System.Windows.Forms.TabPage(); this.panelSubForm = new System.Windows.Forms.Panel(); this.tabPage1 = new System.Windows.Forms.TabPage(); this.txtMachineName = new System.Windows.Forms.TextBox(); this.txtSoftVer = new System.Windows.Forms.TextBox(); this.label7 = new System.Windows.Forms.Label(); this.btnEnsureSoftVer = new System.Windows.Forms.Button(); this.label6 = new System.Windows.Forms.Label(); this.refreshTimer = new System.Windows.Forms.Timer(this.components); this.timerSend30043009 = new System.Windows.Forms.Timer(this.components); this.label8 = new System.Windows.Forms.Label(); this.textBox1 = new System.Windows.Forms.TextBox(); this.button1 = new System.Windows.Forms.Button(); this.groupBox18.SuspendLayout(); this.groupBox5.SuspendLayout(); this.groupBox21.SuspendLayout(); this.groupBox17.SuspendLayout(); this.panel1.SuspendLayout(); this.tbcLog.SuspendLayout(); this.tbpDriverLog.SuspendLayout(); this.tbpGemLog.SuspendLayout(); this.tbpSecsLog.SuspendLayout(); this.tbpEQPLog.SuspendLayout(); this.tabMonitor.SuspendLayout(); this.tabPage1.SuspendLayout(); this.SuspendLayout(); // // btnMonitor // this.btnMonitor.Location = new System.Drawing.Point(14, 150); this.btnMonitor.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.btnMonitor.Name = "btnMonitor"; this.btnMonitor.Size = new System.Drawing.Size(205, 27); this.btnMonitor.TabIndex = 56; this.btnMonitor.Text = "MonitorPLC"; this.btnMonitor.UseVisualStyleBackColor = true; this.btnMonitor.Visible = false; // // label5 // this.label5.AutoSize = true; this.label5.Location = new System.Drawing.Point(72, 132); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(89, 12); this.label5.TabIndex = 55; this.label5.Text = "MachineControl"; this.label5.Visible = false; // // btnGetEC // this.btnGetEC.Font = new System.Drawing.Font("Calibri", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btnGetEC.Location = new System.Drawing.Point(125, 283); this.btnGetEC.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.btnGetEC.Name = "btnGetEC"; this.btnGetEC.Size = new System.Drawing.Size(83, 28); this.btnGetEC.TabIndex = 54; this.btnGetEC.Text = "GetEC"; this.btnGetEC.UseVisualStyleBackColor = true; this.btnGetEC.Visible = false; this.btnGetEC.Click += new System.EventHandler(this.btnGetEC_Click); // // txtUpdateEC // this.txtUpdateEC.Location = new System.Drawing.Point(95, 392); this.txtUpdateEC.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.txtUpdateEC.Name = "txtUpdateEC"; this.txtUpdateEC.Size = new System.Drawing.Size(123, 21); this.txtUpdateEC.TabIndex = 53; this.txtUpdateEC.Visible = false; // // lblUpdateEC // this.lblUpdateEC.AutoSize = true; this.lblUpdateEC.Location = new System.Drawing.Point(17, 392); this.lblUpdateEC.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); this.lblUpdateEC.Name = "lblUpdateEC"; this.lblUpdateEC.Size = new System.Drawing.Size(47, 12); this.lblUpdateEC.TabIndex = 52; this.lblUpdateEC.Text = "Value:"; this.lblUpdateEC.Visible = false; // // lblUpdateECFormat // this.lblUpdateECFormat.AutoSize = true; this.lblUpdateECFormat.Location = new System.Drawing.Point(17, 362); this.lblUpdateECFormat.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); this.lblUpdateECFormat.Name = "lblUpdateECFormat"; this.lblUpdateECFormat.Size = new System.Drawing.Size(53, 12); this.lblUpdateECFormat.TabIndex = 51; this.lblUpdateECFormat.Text = "Format:"; this.lblUpdateECFormat.Visible = false; // // cmbUpdateECFormat // this.cmbUpdateECFormat.FormattingEnabled = true; this.cmbUpdateECFormat.Items.AddRange(new object[] { "Boolean", "B", "A", "U1", "U2", "U4", "U8", "I1", "I2", "I4", "I8", "F4", "F8"}); this.cmbUpdateECFormat.Location = new System.Drawing.Point(95, 359); this.cmbUpdateECFormat.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.cmbUpdateECFormat.Name = "cmbUpdateECFormat"; this.cmbUpdateECFormat.Size = new System.Drawing.Size(123, 20); this.cmbUpdateECFormat.TabIndex = 50; this.cmbUpdateECFormat.Visible = false; // // txtUpdateECID // this.txtUpdateECID.Location = new System.Drawing.Point(95, 326); this.txtUpdateECID.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.txtUpdateECID.MaxLength = 10; this.txtUpdateECID.Name = "txtUpdateECID"; this.txtUpdateECID.Size = new System.Drawing.Size(123, 21); this.txtUpdateECID.TabIndex = 49; this.txtUpdateECID.Visible = false; // // lblUpdateECID // this.lblUpdateECID.AutoSize = true; this.lblUpdateECID.Location = new System.Drawing.Point(17, 329); this.lblUpdateECID.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); this.lblUpdateECID.Name = "lblUpdateECID"; this.lblUpdateECID.Size = new System.Drawing.Size(41, 12); this.lblUpdateECID.TabIndex = 48; this.lblUpdateECID.Text = "ECID:"; this.lblUpdateECID.Visible = false; // // btnUpdateEC // this.btnUpdateEC.Font = new System.Drawing.Font("Calibri", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btnUpdateEC.Location = new System.Drawing.Point(16, 283); this.btnUpdateEC.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.btnUpdateEC.Name = "btnUpdateEC"; this.btnUpdateEC.Size = new System.Drawing.Size(83, 28); this.btnUpdateEC.TabIndex = 47; this.btnUpdateEC.Text = "UpdateEC"; this.btnUpdateEC.UseVisualStyleBackColor = true; this.btnUpdateEC.Visible = false; this.btnUpdateEC.Click += new System.EventHandler(this.btnUpdateEC_Click); // // btnOnLineLocal // this.btnOnLineLocal.Location = new System.Drawing.Point(19, 237); this.btnOnLineLocal.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.btnOnLineLocal.Name = "btnOnLineLocal"; this.btnOnLineLocal.Size = new System.Drawing.Size(86, 33); this.btnOnLineLocal.TabIndex = 46; this.btnOnLineLocal.Text = "OnlineLocal"; this.btnOnLineLocal.UseVisualStyleBackColor = true; this.btnOnLineLocal.Click += new System.EventHandler(this.btnOnLineLocal_Click); // // btnOnLineRemote // this.btnOnLineRemote.Location = new System.Drawing.Point(127, 237); this.btnOnLineRemote.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.btnOnLineRemote.Name = "btnOnLineRemote"; this.btnOnLineRemote.Size = new System.Drawing.Size(86, 33); this.btnOnLineRemote.TabIndex = 45; this.btnOnLineRemote.Text = "OnlineRemote"; this.btnOnLineRemote.UseVisualStyleBackColor = true; this.btnOnLineRemote.Click += new System.EventHandler(this.btnOnLineRemote_Click); // // btnOffLine // this.btnOffLine.Location = new System.Drawing.Point(19, 197); this.btnOffLine.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.btnOffLine.Name = "btnOffLine"; this.btnOffLine.Size = new System.Drawing.Size(194, 24); this.btnOffLine.TabIndex = 44; this.btnOffLine.Text = "Offline"; this.btnOffLine.UseVisualStyleBackColor = true; this.btnOffLine.Click += new System.EventHandler(this.btnOffLine_Click); // // label3 // this.label3.AutoSize = true; this.label3.Location = new System.Drawing.Point(72, 183); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(83, 12); this.label3.TabIndex = 43; this.label3.Text = "Control State"; // // btnDisableComm // this.btnDisableComm.Location = new System.Drawing.Point(119, 93); this.btnDisableComm.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.btnDisableComm.Name = "btnDisableComm"; this.btnDisableComm.Size = new System.Drawing.Size(99, 27); this.btnDisableComm.TabIndex = 42; this.btnDisableComm.Text = "Disable Comm"; this.btnDisableComm.UseVisualStyleBackColor = true; this.btnDisableComm.Click += new System.EventHandler(this.btnDisableComm_Click); // // btnEnableComm // this.btnEnableComm.Location = new System.Drawing.Point(14, 93); this.btnEnableComm.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.btnEnableComm.Name = "btnEnableComm"; this.btnEnableComm.Size = new System.Drawing.Size(100, 27); this.btnEnableComm.TabIndex = 41; this.btnEnableComm.Text = "Enable Comm"; this.btnEnableComm.UseVisualStyleBackColor = true; this.btnEnableComm.Click += new System.EventHandler(this.btnEnableComm_Click); // // label2 // this.label2.AutoSize = true; this.label2.Location = new System.Drawing.Point(56, 68); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(119, 12); this.label2.TabIndex = 40; this.label2.Text = "Communicating State"; // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(39, 9); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(161, 12); this.label1.TabIndex = 39; this.label1.Text = "SECS Driver Connect Status"; // // btnStop // this.btnStop.Location = new System.Drawing.Point(119, 36); this.btnStop.Name = "btnStop"; this.btnStop.Size = new System.Drawing.Size(99, 26); this.btnStop.TabIndex = 38; this.btnStop.Text = "Stop"; this.btnStop.UseVisualStyleBackColor = true; this.btnStop.Click += new System.EventHandler(this.btnStop_Click); // // btnStart // this.btnStart.Location = new System.Drawing.Point(14, 36); this.btnStart.Name = "btnStart"; this.btnStart.Size = new System.Drawing.Size(100, 26); this.btnStart.TabIndex = 37; this.btnStart.Text = "Start"; this.btnStart.UseVisualStyleBackColor = true; this.btnStart.Click += new System.EventHandler(this.btnStart_Click); // // groupBox18 // this.groupBox18.Controls.Add(this.lblText); this.groupBox18.Controls.Add(this.lblTID); this.groupBox18.Controls.Add(this.btnTerminalRequest); this.groupBox18.Controls.Add(this.txtText); this.groupBox18.Controls.Add(this.txtTID); this.groupBox18.Font = new System.Drawing.Font("Calibri", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.groupBox18.Location = new System.Drawing.Point(14, 428); this.groupBox18.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.groupBox18.Name = "groupBox18"; this.groupBox18.Padding = new System.Windows.Forms.Padding(2, 2, 2, 2); this.groupBox18.Size = new System.Drawing.Size(227, 141); this.groupBox18.TabIndex = 57; this.groupBox18.TabStop = false; this.groupBox18.Text = "S10F1 Terminal"; this.groupBox18.Visible = false; // // lblText // this.lblText.AutoSize = true; this.lblText.Font = new System.Drawing.Font("Calibri", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblText.Location = new System.Drawing.Point(19, 57); this.lblText.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); this.lblText.Name = "lblText"; this.lblText.Size = new System.Drawing.Size(59, 19); this.lblText.TabIndex = 0; this.lblText.Text = "TEXT:"; // // lblTID // this.lblTID.AutoSize = true; this.lblTID.Font = new System.Drawing.Font("Calibri", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblTID.Location = new System.Drawing.Point(19, 25); this.lblTID.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); this.lblTID.Name = "lblTID"; this.lblTID.Size = new System.Drawing.Size(48, 19); this.lblTID.TabIndex = 0; this.lblTID.Text = "TID:"; // // btnTerminalRequest // this.btnTerminalRequest.Font = new System.Drawing.Font("Calibri", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btnTerminalRequest.Location = new System.Drawing.Point(22, 94); this.btnTerminalRequest.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.btnTerminalRequest.Name = "btnTerminalRequest"; this.btnTerminalRequest.Size = new System.Drawing.Size(172, 27); this.btnTerminalRequest.TabIndex = 2; this.btnTerminalRequest.Text = "Terminal Request"; this.btnTerminalRequest.UseVisualStyleBackColor = true; this.btnTerminalRequest.Click += new System.EventHandler(this.btnTerminalRequest_Click); // // txtText // this.txtText.Font = new System.Drawing.Font("Calibri", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.txtText.Location = new System.Drawing.Point(99, 50); this.txtText.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.txtText.Name = "txtText"; this.txtText.Size = new System.Drawing.Size(96, 27); this.txtText.TabIndex = 1; this.txtText.Text = "101"; this.txtText.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; // // txtTID // this.txtTID.Font = new System.Drawing.Font("Calibri", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.txtTID.Location = new System.Drawing.Point(99, 22); this.txtTID.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.txtTID.Name = "txtTID"; this.txtTID.Size = new System.Drawing.Size(96, 27); this.txtTID.TabIndex = 1; this.txtTID.Text = "0"; this.txtTID.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; // // groupBox5 // this.groupBox5.Controls.Add(this.lblEventID); this.groupBox5.Controls.Add(this.btnEventReport); this.groupBox5.Controls.Add(this.txtEventID); this.groupBox5.Font = new System.Drawing.Font("Calibri", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.groupBox5.Location = new System.Drawing.Point(676, 343); this.groupBox5.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.groupBox5.Name = "groupBox5"; this.groupBox5.Padding = new System.Windows.Forms.Padding(2, 2, 2, 2); this.groupBox5.Size = new System.Drawing.Size(199, 96); this.groupBox5.TabIndex = 58; this.groupBox5.TabStop = false; this.groupBox5.Text = "S6F11"; this.groupBox5.Visible = false; // // lblEventID // this.lblEventID.AutoSize = true; this.lblEventID.Font = new System.Drawing.Font("Calibri", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblEventID.Location = new System.Drawing.Point(11, 28); this.lblEventID.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); this.lblEventID.Name = "lblEventID"; this.lblEventID.Size = new System.Drawing.Size(74, 19); this.lblEventID.TabIndex = 0; this.lblEventID.Text = "Event ID :"; // // btnEventReport // this.btnEventReport.Font = new System.Drawing.Font("Calibri", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btnEventReport.Location = new System.Drawing.Point(22, 57); this.btnEventReport.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.btnEventReport.Name = "btnEventReport"; this.btnEventReport.Size = new System.Drawing.Size(172, 27); this.btnEventReport.TabIndex = 2; this.btnEventReport.Text = "Event Report Send"; this.btnEventReport.UseVisualStyleBackColor = true; this.btnEventReport.Click += new System.EventHandler(this.btnEventReport_Click); // // txtEventID // this.txtEventID.Font = new System.Drawing.Font("Calibri", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.txtEventID.Location = new System.Drawing.Point(91, 26); this.txtEventID.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.txtEventID.Name = "txtEventID"; this.txtEventID.Size = new System.Drawing.Size(96, 27); this.txtEventID.TabIndex = 1; this.txtEventID.Text = "1001"; this.txtEventID.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; // // lblPPBodyPPID // this.lblPPBodyPPID.AutoSize = true; this.lblPPBodyPPID.Font = new System.Drawing.Font("Calibri", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblPPBodyPPID.Location = new System.Drawing.Point(247, 404); this.lblPPBodyPPID.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); this.lblPPBodyPPID.Name = "lblPPBodyPPID"; this.lblPPBodyPPID.Size = new System.Drawing.Size(115, 19); this.lblPPBodyPPID.TabIndex = 63; this.lblPPBodyPPID.Text = "PPBody PPID:"; this.lblPPBodyPPID.Visible = false; // // btnSendS7F25 // this.btnSendS7F25.Font = new System.Drawing.Font("Calibri", 12F, System.Drawing.FontStyle.Bold); this.btnSendS7F25.Location = new System.Drawing.Point(390, 471); this.btnSendS7F25.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.btnSendS7F25.Name = "btnSendS7F25"; this.btnSendS7F25.Size = new System.Drawing.Size(155, 33); this.btnSendS7F25.TabIndex = 62; this.btnSendS7F25.Text = "Request PP (S7F25)"; this.btnSendS7F25.UseVisualStyleBackColor = true; this.btnSendS7F25.Visible = false; this.btnSendS7F25.Click += new System.EventHandler(this.btnSendS7F25_Click); // // btnSendS7F23 // this.btnSendS7F23.Font = new System.Drawing.Font("Calibri", 12F, System.Drawing.FontStyle.Bold); this.btnSendS7F23.Location = new System.Drawing.Point(390, 428); this.btnSendS7F23.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.btnSendS7F23.Name = "btnSendS7F23"; this.btnSendS7F23.Size = new System.Drawing.Size(155, 34); this.btnSendS7F23.TabIndex = 61; this.btnSendS7F23.Text = "Send PP (S7F23)"; this.btnSendS7F23.UseVisualStyleBackColor = true; this.btnSendS7F23.Visible = false; // // btnSendS7F5 // this.btnSendS7F5.Font = new System.Drawing.Font("Calibri", 12F, System.Drawing.FontStyle.Bold); this.btnSendS7F5.Location = new System.Drawing.Point(245, 471); this.btnSendS7F5.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.btnSendS7F5.Name = "btnSendS7F5"; this.btnSendS7F5.Size = new System.Drawing.Size(141, 33); this.btnSendS7F5.TabIndex = 60; this.btnSendS7F5.Text = "Request PP (S7F5)"; this.btnSendS7F5.UseVisualStyleBackColor = true; this.btnSendS7F5.Visible = false; // // btnSendS7F3 // this.btnSendS7F3.Font = new System.Drawing.Font("Calibri", 12F, System.Drawing.FontStyle.Bold); this.btnSendS7F3.Location = new System.Drawing.Point(245, 428); this.btnSendS7F3.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.btnSendS7F3.Name = "btnSendS7F3"; this.btnSendS7F3.Size = new System.Drawing.Size(141, 34); this.btnSendS7F3.TabIndex = 59; this.btnSendS7F3.Text = "Send PP (S7F3)"; this.btnSendS7F3.UseVisualStyleBackColor = true; this.btnSendS7F3.Visible = false; // // groupBox21 // this.groupBox21.Controls.Add(this.rdoMultiblockNotAllowedFalse); this.groupBox21.Controls.Add(this.lblMultiblockNotAllowed); this.groupBox21.Controls.Add(this.rdoMultiblockNotAllowedTrue); this.groupBox21.Controls.Add(this.btnTerminalACKC10); this.groupBox21.Controls.Add(this.lblTerminalACKC10); this.groupBox21.Controls.Add(this.txtTerminalACKC10); this.groupBox21.Font = new System.Drawing.Font("Calibri", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.groupBox21.Location = new System.Drawing.Point(549, 471); this.groupBox21.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.groupBox21.Name = "groupBox21"; this.groupBox21.Padding = new System.Windows.Forms.Padding(2, 2, 2, 2); this.groupBox21.Size = new System.Drawing.Size(326, 93); this.groupBox21.TabIndex = 64; this.groupBox21.TabStop = false; this.groupBox21.Text = "Reply Message"; this.groupBox21.Visible = false; // // rdoMultiblockNotAllowedFalse // this.rdoMultiblockNotAllowedFalse.AutoSize = true; this.rdoMultiblockNotAllowedFalse.Checked = true; this.rdoMultiblockNotAllowedFalse.Location = new System.Drawing.Point(231, 25); this.rdoMultiblockNotAllowedFalse.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.rdoMultiblockNotAllowedFalse.Name = "rdoMultiblockNotAllowedFalse"; this.rdoMultiblockNotAllowedFalse.Size = new System.Drawing.Size(60, 23); this.rdoMultiblockNotAllowedFalse.TabIndex = 6; this.rdoMultiblockNotAllowedFalse.TabStop = true; this.rdoMultiblockNotAllowedFalse.Text = "False"; this.rdoMultiblockNotAllowedFalse.UseVisualStyleBackColor = true; // // lblMultiblockNotAllowed // this.lblMultiblockNotAllowed.AutoSize = true; this.lblMultiblockNotAllowed.Location = new System.Drawing.Point(3, 57); this.lblMultiblockNotAllowed.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); this.lblMultiblockNotAllowed.Name = "lblMultiblockNotAllowed"; this.lblMultiblockNotAllowed.Size = new System.Drawing.Size(132, 19); this.lblMultiblockNotAllowed.TabIndex = 5; this.lblMultiblockNotAllowed.Text = "MultNotAllowed :"; this.lblMultiblockNotAllowed.Click += new System.EventHandler(this.lblMultiblockNotAllowed_Click); // // rdoMultiblockNotAllowedTrue // this.rdoMultiblockNotAllowedTrue.AutoSize = true; this.rdoMultiblockNotAllowedTrue.Location = new System.Drawing.Point(170, 22); this.rdoMultiblockNotAllowedTrue.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.rdoMultiblockNotAllowedTrue.Name = "rdoMultiblockNotAllowedTrue"; this.rdoMultiblockNotAllowedTrue.Size = new System.Drawing.Size(57, 23); this.rdoMultiblockNotAllowedTrue.TabIndex = 4; this.rdoMultiblockNotAllowedTrue.Text = "True"; this.rdoMultiblockNotAllowedTrue.UseVisualStyleBackColor = true; // // btnTerminalACKC10 // this.btnTerminalACKC10.Font = new System.Drawing.Font("Calibri", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btnTerminalACKC10.Location = new System.Drawing.Point(149, 53); this.btnTerminalACKC10.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.btnTerminalACKC10.Name = "btnTerminalACKC10"; this.btnTerminalACKC10.Size = new System.Drawing.Size(128, 27); this.btnTerminalACKC10.TabIndex = 3; this.btnTerminalACKC10.Text = "Terminal Reply"; this.btnTerminalACKC10.UseVisualStyleBackColor = true; this.btnTerminalACKC10.Click += new System.EventHandler(this.btnTerminalACKC10_Click); // // lblTerminalACKC10 // this.lblTerminalACKC10.AutoSize = true; this.lblTerminalACKC10.Font = new System.Drawing.Font("Calibri", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblTerminalACKC10.Location = new System.Drawing.Point(4, 29); this.lblTerminalACKC10.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); this.lblTerminalACKC10.Name = "lblTerminalACKC10"; this.lblTerminalACKC10.Size = new System.Drawing.Size(76, 19); this.lblTerminalACKC10.TabIndex = 0; this.lblTerminalACKC10.Text = "ACKC10:"; // // txtTerminalACKC10 // this.txtTerminalACKC10.Font = new System.Drawing.Font("Calibri", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.txtTerminalACKC10.Location = new System.Drawing.Point(84, 22); this.txtTerminalACKC10.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.txtTerminalACKC10.Name = "txtTerminalACKC10"; this.txtTerminalACKC10.Size = new System.Drawing.Size(82, 27); this.txtTerminalACKC10.TabIndex = 1; this.txtTerminalACKC10.Text = "0"; this.txtTerminalACKC10.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; // // label4 // this.label4.AutoSize = true; this.label4.Font = new System.Drawing.Font("Calibri", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label4.Location = new System.Drawing.Point(241, 513); this.label4.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(121, 19); this.label4.TabIndex = 34; this.label4.Text = "Reply Remote:"; this.label4.Visible = false; // // groupBox17 // this.groupBox17.Controls.Add(this.btnEQPDateAndTimeRequest); this.groupBox17.Font = new System.Drawing.Font("Calibri", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.groupBox17.Location = new System.Drawing.Point(438, 343); this.groupBox17.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.groupBox17.Name = "groupBox17"; this.groupBox17.Padding = new System.Windows.Forms.Padding(2, 2, 2, 2); this.groupBox17.Size = new System.Drawing.Size(227, 64); this.groupBox17.TabIndex = 33; this.groupBox17.TabStop = false; this.groupBox17.Text = "S2F17"; this.groupBox17.Visible = false; // // btnEQPDateAndTimeRequest // this.btnEQPDateAndTimeRequest.Font = new System.Drawing.Font("Calibri", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btnEQPDateAndTimeRequest.Location = new System.Drawing.Point(8, 25); this.btnEQPDateAndTimeRequest.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.btnEQPDateAndTimeRequest.Name = "btnEQPDateAndTimeRequest"; this.btnEQPDateAndTimeRequest.Size = new System.Drawing.Size(194, 27); this.btnEQPDateAndTimeRequest.TabIndex = 2; this.btnEQPDateAndTimeRequest.Text = "EQP Date And Time Request"; this.btnEQPDateAndTimeRequest.UseVisualStyleBackColor = true; this.btnEQPDateAndTimeRequest.Click += new System.EventHandler(this.btnEQPDateAndTimeRequest_Click); // // panel1 // this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.panel1.Controls.Add(this.tbcLog); this.panel1.Location = new System.Drawing.Point(235, 3); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(634, 322); this.panel1.TabIndex = 65; // // tbcLog // this.tbcLog.Controls.Add(this.tbpDriverLog); this.tbcLog.Controls.Add(this.tbpGemLog); this.tbcLog.Controls.Add(this.tbpSecsLog); this.tbcLog.Controls.Add(this.tbpEQPLog); this.tbcLog.Controls.Add(this.tabMonitor); this.tbcLog.Controls.Add(this.tabPage1); this.tbcLog.Dock = System.Windows.Forms.DockStyle.Fill; this.tbcLog.Location = new System.Drawing.Point(0, 0); this.tbcLog.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.tbcLog.Name = "tbcLog"; this.tbcLog.SelectedIndex = 0; this.tbcLog.Size = new System.Drawing.Size(634, 322); this.tbcLog.TabIndex = 1; // // tbpDriverLog // this.tbpDriverLog.Controls.Add(this.rtbDriverLog); this.tbpDriverLog.Location = new System.Drawing.Point(4, 22); this.tbpDriverLog.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.tbpDriverLog.Name = "tbpDriverLog"; this.tbpDriverLog.Padding = new System.Windows.Forms.Padding(2, 2, 2, 2); this.tbpDriverLog.Size = new System.Drawing.Size(626, 296); this.tbpDriverLog.TabIndex = 0; this.tbpDriverLog.Text = "DIASECS Log"; this.tbpDriverLog.UseVisualStyleBackColor = true; // // rtbDriverLog // this.rtbDriverLog.Dock = System.Windows.Forms.DockStyle.Fill; this.rtbDriverLog.Font = new System.Drawing.Font("Courier New", 9F); this.rtbDriverLog.Location = new System.Drawing.Point(2, 2); this.rtbDriverLog.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.rtbDriverLog.Name = "rtbDriverLog"; this.rtbDriverLog.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.ForcedBoth; this.rtbDriverLog.Size = new System.Drawing.Size(622, 292); this.rtbDriverLog.TabIndex = 0; this.rtbDriverLog.Text = ""; this.rtbDriverLog.WordWrap = false; // // tbpGemLog // this.tbpGemLog.Controls.Add(this.rtbGemLog); this.tbpGemLog.Location = new System.Drawing.Point(4, 22); this.tbpGemLog.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.tbpGemLog.Name = "tbpGemLog"; this.tbpGemLog.Padding = new System.Windows.Forms.Padding(2, 2, 2, 2); this.tbpGemLog.Size = new System.Drawing.Size(626, 296); this.tbpGemLog.TabIndex = 2; this.tbpGemLog.Text = "DIASECSGEM Log"; this.tbpGemLog.UseVisualStyleBackColor = true; // // rtbGemLog // this.rtbGemLog.Dock = System.Windows.Forms.DockStyle.Fill; this.rtbGemLog.Font = new System.Drawing.Font("Courier New", 9F); this.rtbGemLog.Location = new System.Drawing.Point(2, 2); this.rtbGemLog.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.rtbGemLog.Name = "rtbGemLog"; this.rtbGemLog.Size = new System.Drawing.Size(622, 292); this.rtbGemLog.TabIndex = 0; this.rtbGemLog.Text = ""; this.rtbGemLog.WordWrap = false; // // tbpSecsLog // this.tbpSecsLog.Controls.Add(this.rtbSecsLog); this.tbpSecsLog.Location = new System.Drawing.Point(4, 22); this.tbpSecsLog.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.tbpSecsLog.Name = "tbpSecsLog"; this.tbpSecsLog.Padding = new System.Windows.Forms.Padding(2, 2, 2, 2); this.tbpSecsLog.Size = new System.Drawing.Size(626, 296); this.tbpSecsLog.TabIndex = 1; this.tbpSecsLog.Text = "SECS Log"; this.tbpSecsLog.UseVisualStyleBackColor = true; // // rtbSecsLog // this.rtbSecsLog.Dock = System.Windows.Forms.DockStyle.Fill; this.rtbSecsLog.Font = new System.Drawing.Font("Courier New", 10F); this.rtbSecsLog.Location = new System.Drawing.Point(2, 2); this.rtbSecsLog.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.rtbSecsLog.Name = "rtbSecsLog"; this.rtbSecsLog.Size = new System.Drawing.Size(622, 292); this.rtbSecsLog.TabIndex = 0; this.rtbSecsLog.Text = ""; this.rtbSecsLog.WordWrap = false; // // tbpEQPLog // this.tbpEQPLog.Controls.Add(this.rtbEqpLog); this.tbpEQPLog.Location = new System.Drawing.Point(4, 22); this.tbpEQPLog.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.tbpEQPLog.Name = "tbpEQPLog"; this.tbpEQPLog.Size = new System.Drawing.Size(626, 296); this.tbpEQPLog.TabIndex = 3; this.tbpEQPLog.Text = "EQP Log"; this.tbpEQPLog.UseVisualStyleBackColor = true; // // rtbEqpLog // this.rtbEqpLog.Dock = System.Windows.Forms.DockStyle.Fill; this.rtbEqpLog.Font = new System.Drawing.Font("Courier New", 9F); this.rtbEqpLog.Location = new System.Drawing.Point(0, 0); this.rtbEqpLog.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.rtbEqpLog.Name = "rtbEqpLog"; this.rtbEqpLog.Size = new System.Drawing.Size(626, 296); this.rtbEqpLog.TabIndex = 0; this.rtbEqpLog.Text = ""; this.rtbEqpLog.WordWrap = false; // // tabMonitor // this.tabMonitor.Controls.Add(this.panelSubForm); this.tabMonitor.Location = new System.Drawing.Point(4, 22); this.tabMonitor.Name = "tabMonitor"; this.tabMonitor.Size = new System.Drawing.Size(626, 296); this.tabMonitor.TabIndex = 4; this.tabMonitor.Text = "Monitor"; this.tabMonitor.UseVisualStyleBackColor = true; // // panelSubForm // this.panelSubForm.Dock = System.Windows.Forms.DockStyle.Fill; this.panelSubForm.Location = new System.Drawing.Point(0, 0); this.panelSubForm.Name = "panelSubForm"; this.panelSubForm.Size = new System.Drawing.Size(626, 296); this.panelSubForm.TabIndex = 0; // // tabPage1 // this.tabPage1.Controls.Add(this.txtMachineName); this.tabPage1.Controls.Add(this.txtSoftVer); this.tabPage1.Controls.Add(this.label7); this.tabPage1.Controls.Add(this.btnEnsureSoftVer); this.tabPage1.Controls.Add(this.label6); this.tabPage1.Location = new System.Drawing.Point(4, 22); this.tabPage1.Name = "tabPage1"; this.tabPage1.Size = new System.Drawing.Size(626, 296); this.tabPage1.TabIndex = 5; this.tabPage1.Text = "OtherSetting"; this.tabPage1.UseVisualStyleBackColor = true; // // txtMachineName // this.txtMachineName.Font = new System.Drawing.Font("宋体", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.txtMachineName.Location = new System.Drawing.Point(107, 28); this.txtMachineName.Name = "txtMachineName"; this.txtMachineName.Size = new System.Drawing.Size(193, 31); this.txtMachineName.TabIndex = 4; // // txtSoftVer // this.txtSoftVer.Font = new System.Drawing.Font("宋体", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.txtSoftVer.Location = new System.Drawing.Point(107, 64); this.txtSoftVer.Name = "txtSoftVer"; this.txtSoftVer.Size = new System.Drawing.Size(193, 31); this.txtSoftVer.TabIndex = 1; // // label7 // this.label7.AutoSize = true; this.label7.Font = new System.Drawing.Font("宋体", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label7.Location = new System.Drawing.Point(7, 33); this.label7.Name = "label7"; this.label7.Size = new System.Drawing.Size(115, 21); this.label7.TabIndex = 3; this.label7.Text = "设备名称:"; // // btnEnsureSoftVer // this.btnEnsureSoftVer.Font = new System.Drawing.Font("宋体", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.btnEnsureSoftVer.Location = new System.Drawing.Point(306, 28); this.btnEnsureSoftVer.Name = "btnEnsureSoftVer"; this.btnEnsureSoftVer.Size = new System.Drawing.Size(82, 70); this.btnEnsureSoftVer.TabIndex = 2; this.btnEnsureSoftVer.Text = "确认"; this.btnEnsureSoftVer.UseVisualStyleBackColor = true; this.btnEnsureSoftVer.Click += new System.EventHandler(this.btnEnsureSoftVer_Click); // // label6 // this.label6.AutoSize = true; this.label6.Font = new System.Drawing.Font("宋体", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label6.Location = new System.Drawing.Point(7, 69); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(115, 21); this.label6.TabIndex = 0; this.label6.Text = "软件版本:"; // // refreshTimer // this.refreshTimer.Enabled = true; this.refreshTimer.Interval = 500; this.refreshTimer.Tick += new System.EventHandler(this.refreshTimer_Tick); // // timerSend30043009 // this.timerSend30043009.Interval = 500; this.timerSend30043009.Tick += new System.EventHandler(this.timerSend30043009_Tick); // // label8 // this.label8.AutoSize = true; this.label8.Location = new System.Drawing.Point(249, 346); this.label8.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); this.label8.Name = "label8"; this.label8.Size = new System.Drawing.Size(71, 12); this.label8.TabIndex = 66; this.label8.Text = "EquipmentID"; this.label8.Visible = false; // // textBox1 // this.textBox1.Location = new System.Drawing.Point(251, 373); this.textBox1.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.textBox1.Name = "textBox1"; this.textBox1.Size = new System.Drawing.Size(127, 21); this.textBox1.TabIndex = 67; this.textBox1.Visible = false; // // button1 // this.button1.Location = new System.Drawing.Point(325, 343); this.button1.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(61, 26); this.button1.TabIndex = 68; this.button1.Text = "发送"; this.button1.UseVisualStyleBackColor = true; this.button1.Visible = false; this.button1.Click += new System.EventHandler(this.button1_Click); // // secsClient // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(132)))), ((int)(((byte)(151)))), ((int)(((byte)(176))))); this.Controls.Add(this.button1); this.Controls.Add(this.textBox1); this.Controls.Add(this.label8); this.Controls.Add(this.panel1); this.Controls.Add(this.label4); this.Controls.Add(this.groupBox21); this.Controls.Add(this.groupBox17); this.Controls.Add(this.lblPPBodyPPID); this.Controls.Add(this.btnSendS7F25); this.Controls.Add(this.btnSendS7F23); this.Controls.Add(this.btnSendS7F5); this.Controls.Add(this.btnSendS7F3); this.Controls.Add(this.groupBox5); this.Controls.Add(this.groupBox18); this.Controls.Add(this.btnMonitor); this.Controls.Add(this.label5); this.Controls.Add(this.btnGetEC); this.Controls.Add(this.txtUpdateEC); this.Controls.Add(this.lblUpdateEC); this.Controls.Add(this.lblUpdateECFormat); this.Controls.Add(this.cmbUpdateECFormat); this.Controls.Add(this.txtUpdateECID); this.Controls.Add(this.lblUpdateECID); this.Controls.Add(this.btnUpdateEC); this.Controls.Add(this.btnOnLineLocal); this.Controls.Add(this.btnOnLineRemote); this.Controls.Add(this.btnOffLine); this.Controls.Add(this.label3); this.Controls.Add(this.btnDisableComm); this.Controls.Add(this.btnEnableComm); this.Controls.Add(this.label2); this.Controls.Add(this.label1); this.Controls.Add(this.btnStop); this.Controls.Add(this.btnStart); this.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.Name = "secsClient"; this.Size = new System.Drawing.Size(906, 591); this.groupBox18.ResumeLayout(false); this.groupBox18.PerformLayout(); this.groupBox5.ResumeLayout(false); this.groupBox5.PerformLayout(); this.groupBox21.ResumeLayout(false); this.groupBox21.PerformLayout(); this.groupBox17.ResumeLayout(false); this.panel1.ResumeLayout(false); this.tbcLog.ResumeLayout(false); this.tbpDriverLog.ResumeLayout(false); this.tbpGemLog.ResumeLayout(false); this.tbpSecsLog.ResumeLayout(false); this.tbpEQPLog.ResumeLayout(false); this.tabMonitor.ResumeLayout(false); this.tabPage1.ResumeLayout(false); this.tabPage1.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); } #endregion private System.Windows.Forms.Button btnMonitor; private System.Windows.Forms.Label label5; private System.Windows.Forms.Button btnGetEC; private System.Windows.Forms.TextBox txtUpdateEC; private System.Windows.Forms.Label lblUpdateEC; private System.Windows.Forms.Label lblUpdateECFormat; private System.Windows.Forms.ComboBox cmbUpdateECFormat; private System.Windows.Forms.TextBox txtUpdateECID; private System.Windows.Forms.Label lblUpdateECID; private System.Windows.Forms.Button btnUpdateEC; private System.Windows.Forms.Button btnOnLineLocal; private System.Windows.Forms.Button btnOnLineRemote; private System.Windows.Forms.Button btnOffLine; private System.Windows.Forms.Label label3; private System.Windows.Forms.Button btnDisableComm; private System.Windows.Forms.Button btnEnableComm; private System.Windows.Forms.Label label2; private System.Windows.Forms.Label label1; private System.Windows.Forms.Button btnStop; private System.Windows.Forms.Button btnStart; private System.Windows.Forms.GroupBox groupBox18; private System.Windows.Forms.Label lblText; private System.Windows.Forms.Label lblTID; private System.Windows.Forms.Button btnTerminalRequest; private System.Windows.Forms.TextBox txtText; private System.Windows.Forms.TextBox txtTID; private System.Windows.Forms.GroupBox groupBox5; private System.Windows.Forms.Label lblEventID; private System.Windows.Forms.Button btnEventReport; private System.Windows.Forms.TextBox txtEventID; private System.Windows.Forms.Label lblPPBodyPPID; private System.Windows.Forms.Button btnSendS7F25; private System.Windows.Forms.Button btnSendS7F23; private System.Windows.Forms.Button btnSendS7F5; private System.Windows.Forms.Button btnSendS7F3; private System.Windows.Forms.GroupBox groupBox21; private System.Windows.Forms.RadioButton rdoMultiblockNotAllowedFalse; private System.Windows.Forms.Label lblMultiblockNotAllowed; private System.Windows.Forms.RadioButton rdoMultiblockNotAllowedTrue; private System.Windows.Forms.Button btnTerminalACKC10; private System.Windows.Forms.Label lblTerminalACKC10; private System.Windows.Forms.TextBox txtTerminalACKC10; private System.Windows.Forms.Label label4; private System.Windows.Forms.GroupBox groupBox17; private System.Windows.Forms.Button btnEQPDateAndTimeRequest; private System.Windows.Forms.Panel panel1; private System.Windows.Forms.TabControl tbcLog; private System.Windows.Forms.TabPage tbpSecsLog; private System.Windows.Forms.TabPage tbpEQPLog; private System.Windows.Forms.RichTextBox rtbEqpLog; private System.Windows.Forms.TabPage tabMonitor; private System.Windows.Forms.Panel panelSubForm; private System.Windows.Forms.TabPage tabPage1; private System.Windows.Forms.TextBox txtMachineName; private System.Windows.Forms.TextBox txtSoftVer; private System.Windows.Forms.Label label7; private System.Windows.Forms.Button btnEnsureSoftVer; private System.Windows.Forms.Label label6; private System.Windows.Forms.Timer refreshTimer; private System.Windows.Forms.Timer timerSend30043009; private System.Windows.Forms.TabPage tbpDriverLog; private System.Windows.Forms.RichTextBox rtbDriverLog; private System.Windows.Forms.TabPage tbpGemLog; private System.Windows.Forms.RichTextBox rtbGemLog; private System.Windows.Forms.RichTextBox rtbSecsLog; private System.Windows.Forms.Label label8; private System.Windows.Forms.TextBox textBox1; private System.Windows.Forms.Button button1; } } 帮我把这个winfrom用户窗体页面改成wpf的用户页面
最新发布
12-06
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值