private void button1_Click(object sender, EventArgs e) { if (estaConectado) { var form5 = new FormCajero(conexionTcp); form5.Show(); } else { string message = "Error de conexión con el servidor."; string title = "Mensaje"; MessageBox.Show(message, title); } }
public void abrirCajero() { FormCajero menu = new FormCajero(); menu.ShowDialog(); }