private void btn_Cancelar_Click(object sender, EventArgs e) { if ((MessageBox.Show("Desea salir sin generar nuevo Ticket", "Volver al Menu Principal", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)) { frm_0MenuPrincipal ventanaMenuPrincipal = new frm_0MenuPrincipal(); ventanaMenuPrincipal.ShowDialog(); } else { return; } }
private void button1_Click(object sender, EventArgs e) { frm_0MenuPrincipal ventana = new frm_0MenuPrincipal(); ventana.ShowDialog(); }