private void UploadButton_Click(object sender, EventArgs e) { if (client.isConnected()) { breakPoints = currentFileEditor.GetBreakpoints(); client.sendMessage(currentFileEditor.GetText() + "\0"); } else { DisplayStatusText("Connection broken @ " + port + " Address: " + address, "warning"); connectButton.Enabled = true; uploadButton.Enabled = false; stepButton.Enabled = false; } }