Added GUI support for client logs and get time and date

This commit is contained in:
2025-10-01 08:18:51 +02:00
parent 4c14a85909
commit cedc1af23f

View File

@@ -40,6 +40,9 @@
this.restartUDPClientToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.restartUDPClientToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.messageTxt = new Krypton.Toolkit.KryptonTextBox(); this.messageTxt = new Krypton.Toolkit.KryptonTextBox();
this.kryptonManager2 = new Krypton.Toolkit.KryptonManager(this.components); this.kryptonManager2 = new Krypton.Toolkit.KryptonManager(this.components);
this.kryptonListBox1 = new Krypton.Toolkit.KryptonListBox();
this.getTimeBtn = new Krypton.Toolkit.KryptonButton();
this.getDateBtn = new Krypton.Toolkit.KryptonButton();
((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit();
this.kryptonPanel1.SuspendLayout(); this.kryptonPanel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.kryptonPictureBox1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.kryptonPictureBox1)).BeginInit();
@@ -49,6 +52,9 @@
// //
// kryptonPanel1 // kryptonPanel1
// //
this.kryptonPanel1.Controls.Add(this.getDateBtn);
this.kryptonPanel1.Controls.Add(this.getTimeBtn);
this.kryptonPanel1.Controls.Add(this.kryptonListBox1);
this.kryptonPanel1.Controls.Add(this.kryptonPictureBox1); this.kryptonPanel1.Controls.Add(this.kryptonPictureBox1);
this.kryptonPanel1.Controls.Add(this.sendBtn); this.kryptonPanel1.Controls.Add(this.sendBtn);
this.kryptonPanel1.Controls.Add(this.kryptonStatusStrip1); this.kryptonPanel1.Controls.Add(this.kryptonStatusStrip1);
@@ -57,13 +63,13 @@
this.kryptonPanel1.Dock = System.Windows.Forms.DockStyle.Fill; this.kryptonPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.kryptonPanel1.Location = new System.Drawing.Point(0, 0); this.kryptonPanel1.Location = new System.Drawing.Point(0, 0);
this.kryptonPanel1.Name = "kryptonPanel1"; this.kryptonPanel1.Name = "kryptonPanel1";
this.kryptonPanel1.Size = new System.Drawing.Size(342, 344); this.kryptonPanel1.Size = new System.Drawing.Size(644, 349);
this.kryptonPanel1.TabIndex = 0; this.kryptonPanel1.TabIndex = 0;
// //
// kryptonPictureBox1 // kryptonPictureBox1
// //
this.kryptonPictureBox1.Image = global::SamaPager_Client.Properties.Resources.shalom; this.kryptonPictureBox1.Image = global::SamaPager_Client.Properties.Resources.shalom;
this.kryptonPictureBox1.Location = new System.Drawing.Point(32, 43); this.kryptonPictureBox1.Location = new System.Drawing.Point(349, 134);
this.kryptonPictureBox1.Name = "kryptonPictureBox1"; this.kryptonPictureBox1.Name = "kryptonPictureBox1";
this.kryptonPictureBox1.Size = new System.Drawing.Size(278, 181); this.kryptonPictureBox1.Size = new System.Drawing.Size(278, 181);
this.kryptonPictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; this.kryptonPictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
@@ -85,11 +91,11 @@
this.kryptonStatusStrip1.Font = new System.Drawing.Font("Segoe UI", 9F); this.kryptonStatusStrip1.Font = new System.Drawing.Font("Segoe UI", 9F);
this.kryptonStatusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.kryptonStatusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.statusTxt}); this.statusTxt});
this.kryptonStatusStrip1.Location = new System.Drawing.Point(0, 322); this.kryptonStatusStrip1.Location = new System.Drawing.Point(0, 327);
this.kryptonStatusStrip1.Name = "kryptonStatusStrip1"; this.kryptonStatusStrip1.Name = "kryptonStatusStrip1";
this.kryptonStatusStrip1.ProgressBars = null; this.kryptonStatusStrip1.ProgressBars = null;
this.kryptonStatusStrip1.RenderMode = System.Windows.Forms.ToolStripRenderMode.ManagerRenderMode; this.kryptonStatusStrip1.RenderMode = System.Windows.Forms.ToolStripRenderMode.ManagerRenderMode;
this.kryptonStatusStrip1.Size = new System.Drawing.Size(342, 22); this.kryptonStatusStrip1.Size = new System.Drawing.Size(644, 22);
this.kryptonStatusStrip1.TabIndex = 1; this.kryptonStatusStrip1.TabIndex = 1;
this.kryptonStatusStrip1.Text = "kryptonStatusStrip1"; this.kryptonStatusStrip1.Text = "kryptonStatusStrip1";
// //
@@ -106,7 +112,7 @@
this.fileToolStripMenuItem}); this.fileToolStripMenuItem});
this.menuStrip1.Location = new System.Drawing.Point(0, 0); this.menuStrip1.Location = new System.Drawing.Point(0, 0);
this.menuStrip1.Name = "menuStrip1"; this.menuStrip1.Name = "menuStrip1";
this.menuStrip1.Size = new System.Drawing.Size(342, 24); this.menuStrip1.Size = new System.Drawing.Size(644, 24);
this.menuStrip1.TabIndex = 4; this.menuStrip1.TabIndex = 4;
this.menuStrip1.Text = "menuStrip1"; this.menuStrip1.Text = "menuStrip1";
// //
@@ -145,11 +151,36 @@
// //
this.kryptonManager2.GlobalPaletteMode = Krypton.Toolkit.PaletteMode.Office2010Silver; this.kryptonManager2.GlobalPaletteMode = Krypton.Toolkit.PaletteMode.Office2010Silver;
// //
// kryptonListBox1
//
this.kryptonListBox1.Location = new System.Drawing.Point(12, 27);
this.kryptonListBox1.Name = "kryptonListBox1";
this.kryptonListBox1.Size = new System.Drawing.Size(318, 215);
this.kryptonListBox1.TabIndex = 5;
//
// getTimeBtn
//
this.getTimeBtn.Location = new System.Drawing.Point(349, 27);
this.getTimeBtn.Name = "getTimeBtn";
this.getTimeBtn.Size = new System.Drawing.Size(278, 45);
this.getTimeBtn.TabIndex = 6;
this.getTimeBtn.Values.DropDownArrowColor = System.Drawing.Color.Empty;
this.getTimeBtn.Values.Text = "Get Time";
//
// getDateBtn
//
this.getDateBtn.Location = new System.Drawing.Point(349, 78);
this.getDateBtn.Name = "getDateBtn";
this.getDateBtn.Size = new System.Drawing.Size(278, 43);
this.getDateBtn.TabIndex = 7;
this.getDateBtn.Values.DropDownArrowColor = System.Drawing.Color.Empty;
this.getDateBtn.Values.Text = "Get Date";
//
// Form1 // Form1
// //
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.ClientSize = new System.Drawing.Size(342, 344); this.ClientSize = new System.Drawing.Size(644, 349);
this.Controls.Add(this.kryptonPanel1); this.Controls.Add(this.kryptonPanel1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.MainMenuStrip = this.menuStrip1; this.MainMenuStrip = this.menuStrip1;
@@ -183,6 +214,9 @@
private System.Windows.Forms.ToolStripMenuItem fileToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem fileToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem changeDestinationAddressToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem changeDestinationAddressToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem restartUDPClientToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem restartUDPClientToolStripMenuItem;
private Krypton.Toolkit.KryptonButton getDateBtn;
private Krypton.Toolkit.KryptonButton getTimeBtn;
private Krypton.Toolkit.KryptonListBox kryptonListBox1;
} }
} }