private void button2_Click(object sender, EventArgs e) { PhysLayer.DropConnection(); if (!PhysLayer.IsOpen()) { EnableAllBoxes(); button1.Enabled = true; button2.Enabled = false; } }