private void button1_Click(object sender, EventArgs e) { if (remoteObj != null) { remoteObj.SendTaskForClientToSvr(textBox1.Text); } else { MessageBox.Show("Error!"); } }