StatusBar - Update UI

This commit is contained in:
DucDangAnh 2020-07-02 10:44:20 +07:00
parent 2be71a249a
commit 798eee42e2

View File

@ -29,97 +29,99 @@
private void InitializeComponent() private void InitializeComponent()
{ {
this.lblPingTimeServer = new System.Windows.Forms.Label(); this.lblPingTimeServer = new System.Windows.Forms.Label();
this.lblPingServer = new System.Windows.Forms.Label();
this.lblDateTime = new System.Windows.Forms.Label(); this.lblDateTime = new System.Windows.Forms.Label();
this.lblPingC3200 = new System.Windows.Forms.Label(); this.lblPingDoorAccessControlDevice = new System.Windows.Forms.Label();
this.lblPingTimeC3 = new System.Windows.Forms.Label(); this.lblPingTimeC3 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label(); this.lblConnectionStatus = new System.Windows.Forms.Label();
this.lblServer = new System.Windows.Forms.Label();
this.SuspendLayout(); this.SuspendLayout();
// //
// lblPingTimeServer // lblPingTimeServer
// //
this.lblPingTimeServer.Font = new System.Drawing.Font("Microsoft Sans Serif", 11F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblPingTimeServer.Font = new System.Drawing.Font("Microsoft Sans Serif", 11F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblPingTimeServer.Location = new System.Drawing.Point(181, 2); this.lblPingTimeServer.Location = new System.Drawing.Point(211, 0);
this.lblPingTimeServer.Name = "lblPingTimeServer"; this.lblPingTimeServer.Name = "lblPingTimeServer";
this.lblPingTimeServer.Size = new System.Drawing.Size(75, 23); this.lblPingTimeServer.Size = new System.Drawing.Size(65, 24);
this.lblPingTimeServer.TabIndex = 0; this.lblPingTimeServer.TabIndex = 0;
this.lblPingTimeServer.Text = "1ms"; this.lblPingTimeServer.Text = "1ms";
this.lblPingTimeServer.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.lblPingTimeServer.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
// //
// lblPingServer
//
this.lblPingServer.AutoSize = true;
this.lblPingServer.Font = new System.Drawing.Font("Microsoft Sans Serif", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblPingServer.Location = new System.Drawing.Point(128, 4);
this.lblPingServer.Name = "lblPingServer";
this.lblPingServer.Size = new System.Drawing.Size(51, 18);
this.lblPingServer.TabIndex = 1;
this.lblPingServer.Text = "Server";
//
// lblDateTime // lblDateTime
// //
this.lblDateTime.AutoSize = true; this.lblDateTime.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.lblDateTime.Font = new System.Drawing.Font("Microsoft Sans Serif", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblDateTime.Font = new System.Drawing.Font("Microsoft Sans Serif", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblDateTime.Location = new System.Drawing.Point(597, 4); this.lblDateTime.Location = new System.Drawing.Point(1207, 0);
this.lblDateTime.Name = "lblDateTime"; this.lblDateTime.Name = "lblDateTime";
this.lblDateTime.Size = new System.Drawing.Size(140, 18); this.lblDateTime.Size = new System.Drawing.Size(140, 24);
this.lblDateTime.TabIndex = 2; this.lblDateTime.TabIndex = 2;
this.lblDateTime.Text = "17/06/2020 16:54:43"; this.lblDateTime.Text = "17/06/2020 16:54:43";
this.lblDateTime.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
// //
// lblPingC3200 // lblPingDoorAccessControlDevice
// //
this.lblPingC3200.AutoSize = true; this.lblPingDoorAccessControlDevice.Font = new System.Drawing.Font("Microsoft Sans Serif", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblPingC3200.Font = new System.Drawing.Font("Microsoft Sans Serif", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblPingDoorAccessControlDevice.Location = new System.Drawing.Point(316, 0);
this.lblPingC3200.Location = new System.Drawing.Point(308, 4); this.lblPingDoorAccessControlDevice.Name = "lblPingDoorAccessControlDevice";
this.lblPingC3200.Name = "lblPingC3200"; this.lblPingDoorAccessControlDevice.Size = new System.Drawing.Size(114, 24);
this.lblPingC3200.Size = new System.Drawing.Size(109, 18); this.lblPingDoorAccessControlDevice.TabIndex = 3;
this.lblPingC3200.TabIndex = 3; this.lblPingDoorAccessControlDevice.Text = "Thiết bị mở cửa:";
this.lblPingC3200.Text = "Thiết bị mở cửa"; this.lblPingDoorAccessControlDevice.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
// //
// lblPingTimeC3 // lblPingTimeC3
// //
this.lblPingTimeC3.Font = new System.Drawing.Font("Microsoft Sans Serif", 11F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblPingTimeC3.Font = new System.Drawing.Font("Microsoft Sans Serif", 11F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblPingTimeC3.Location = new System.Drawing.Point(436, 2); this.lblPingTimeC3.Location = new System.Drawing.Point(436, 0);
this.lblPingTimeC3.Name = "lblPingTimeC3"; this.lblPingTimeC3.Name = "lblPingTimeC3";
this.lblPingTimeC3.Size = new System.Drawing.Size(75, 23); this.lblPingTimeC3.Size = new System.Drawing.Size(71, 24);
this.lblPingTimeC3.TabIndex = 3; this.lblPingTimeC3.TabIndex = 3;
this.lblPingTimeC3.Text = "500ms"; this.lblPingTimeC3.Text = "500ms";
this.lblPingTimeC3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.lblPingTimeC3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
// //
// label1 // lblConnectionStatus
// //
this.label1.AutoSize = true; this.lblConnectionStatus.Font = new System.Drawing.Font("Microsoft Sans Serif", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblConnectionStatus.Location = new System.Drawing.Point(3, 0);
this.label1.Location = new System.Drawing.Point(3, 4); this.lblConnectionStatus.Name = "lblConnectionStatus";
this.label1.Name = "label1"; this.lblConnectionStatus.Size = new System.Drawing.Size(125, 24);
this.label1.Size = new System.Drawing.Size(125, 18); this.lblConnectionStatus.TabIndex = 1;
this.label1.TabIndex = 1; this.lblConnectionStatus.Text = "Trạng thái kết nối";
this.label1.Text = "Trạng thái kết nối:"; this.lblConnectionStatus.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// lblServer
//
this.lblServer.Font = new System.Drawing.Font("Microsoft Sans Serif", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblServer.Location = new System.Drawing.Point(142, 0);
this.lblServer.Name = "lblServer";
this.lblServer.Size = new System.Drawing.Size(63, 24);
this.lblServer.TabIndex = 1;
this.lblServer.Text = "Server";
this.lblServer.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
// //
// StatusBar // StatusBar
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.lblPingTimeC3); this.Controls.Add(this.lblPingTimeC3);
this.Controls.Add(this.lblPingC3200); this.Controls.Add(this.lblPingDoorAccessControlDevice);
this.Controls.Add(this.lblDateTime); this.Controls.Add(this.lblDateTime);
this.Controls.Add(this.label1); this.Controls.Add(this.lblServer);
this.Controls.Add(this.lblPingServer); this.Controls.Add(this.lblConnectionStatus);
this.Controls.Add(this.lblPingTimeServer); this.Controls.Add(this.lblPingTimeServer);
this.Margin = new System.Windows.Forms.Padding(0);
this.MaximumSize = new System.Drawing.Size(1350, 24);
this.Name = "StatusBar"; this.Name = "StatusBar";
this.Size = new System.Drawing.Size(740, 25); this.Size = new System.Drawing.Size(1350, 24);
this.ResumeLayout(false); this.ResumeLayout(false);
this.PerformLayout();
} }
#endregion #endregion
private System.Windows.Forms.Label lblPingTimeServer; private System.Windows.Forms.Label lblPingTimeServer;
private System.Windows.Forms.Label lblPingServer;
private System.Windows.Forms.Label lblDateTime; private System.Windows.Forms.Label lblDateTime;
private System.Windows.Forms.Label lblPingC3200; private System.Windows.Forms.Label lblPingDoorAccessControlDevice;
private System.Windows.Forms.Label lblPingTimeC3; private System.Windows.Forms.Label lblPingTimeC3;
private System.Windows.Forms.Label label1; private System.Windows.Forms.Label lblConnectionStatus;
private System.Windows.Forms.Label lblServer;
} }
} }