private void button_Start_Click(object sender, EventArgs e) { monitor.Port = Convert.ToInt16(textBox_ListeningPort.Text); textBox_status.AppendText("Starting Listening...\n"); monitor.StartListening(); textBox_status.AppendText("Started Listening...\n"); button_Start.Enabled = false; button_Stop.Enabled = true; }
private void chkAddDiscovered_CheckedChanged(object sender, System.EventArgs e) { if (chkAddDiscovered.Checked) { mDiscoverer.StartListening(); } else { mDiscoverer.StopListening(); } }