//connecting client private void button2_Click(object sender, EventArgs e) { _client = new Client(); _client.Connect(); _client.ReceiveData(); }