}
Program.order_string = "LOCK";
rev_thread.send_monitor_to_client(comboBox1.Text, textBox1.Text);
}
private void button4_Click(object sender, EventArgs e)
{
if (textBox1.Text.Length < 5)
{
MessageBox.Show("被监控的客户端IP地址不允许空", "确信正确", MessageBoxButtons.OK);
return;
}
Program.order_string = "UNLOCK";
rev_thread.send_monitor_to_client(comboBox1.Text, textBox1.Text);
}
private void button5_Click(object sender, EventArgs e)
{
if (textBox1.Text.Length < 5)
{
MessageBox.Show("被监控的客户端IP地址不允许空", "确信正确", MessageBoxButtons.OK);
return;
}
Program.order_string = "CLOSEPC";
rev_thread.send_monitor_to_client(comboBox1.Text, textBox1.Text);
}
private void button6_Click(object sender, EventArgs e)
{
if (textBox1.Text.Length < 5)
{
MessageBox.Show("被监控的客户端IP地址不允许空", "确信正确", MessageBoxButtons.OK );
|