private void connection_button_Click(object sender, EventArgs e) { setIP(IPList.GetItemText(IPList.SelectedItem), NETMASK, ""); connectToPeer("MicroITS"); connection_button.BackColor = Color.Green; disconnection_button.BackColor = Color.Red; }