Assigned time and date commands to client buttons
This commit is contained in:
2
SamaPager_Client/Form1.Designer.cs
generated
2
SamaPager_Client/Form1.Designer.cs
generated
@@ -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
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -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");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user