Assigned time and date commands to client buttons

This commit is contained in:
2025-10-01 08:25:18 +02:00
parent 2eabe7f2b9
commit e9db84f50c
2 changed files with 12 additions and 0 deletions

View File

@@ -166,6 +166,7 @@
this.getTimeBtn.TabIndex = 6; this.getTimeBtn.TabIndex = 6;
this.getTimeBtn.Values.DropDownArrowColor = System.Drawing.Color.Empty; this.getTimeBtn.Values.DropDownArrowColor = System.Drawing.Color.Empty;
this.getTimeBtn.Values.Text = "Get Time"; this.getTimeBtn.Values.Text = "Get Time";
this.getTimeBtn.Click += new System.EventHandler(this.getTimeBtn_Click);
// //
// getDateBtn // getDateBtn
// //
@@ -175,6 +176,7 @@
this.getDateBtn.TabIndex = 7; this.getDateBtn.TabIndex = 7;
this.getDateBtn.Values.DropDownArrowColor = System.Drawing.Color.Empty; this.getDateBtn.Values.DropDownArrowColor = System.Drawing.Color.Empty;
this.getDateBtn.Values.Text = "Get Date"; this.getDateBtn.Values.Text = "Get Date";
this.getDateBtn.Click += new System.EventHandler(this.getDateBtn_Click);
// //
// Form1 // Form1
// //

View File

@@ -59,5 +59,15 @@ namespace SamaPager_Client
} }
} }
private void getTimeBtn_Click(object sender, EventArgs e)
{
pageClient.SendMessage("!time");
}
private void getDateBtn_Click(object sender, EventArgs e)
{
pageClient.SendMessage("!date");
}
} }
} }