private void BtnConnect_Click(object sender, EventArgs e) { bleClient.Start(); textStatus.Text = "Trying......"; bleClient.IsConnected += bleClient_IsConnected; }
private void button1_Click(object sender, EventArgs e) { blueClient.Start(); textBox1.Text = "Trying to connect to server..."; blueClient.IsConnected += BlueClient_IsConnected; }
private void button1_Click(object sender, EventArgs e) { blueClient = new Bluetooth_Client(TxtServer.Text); blueClient.Start(); blueClient.IsConnected += blueClient_IsConnected; }