private void btnAgregar_Click(object sender, EventArgs e) { btnSalirClicked = false; using (AEOrdenes aeOrd = new AEOrdenes()) if (aeOrd.ShowDialog() == DialogResult.OK) { ordenesTrabajo.Crear(aeOrd.Orden); } }
private void btnVer_Click(object sender, EventArgs e) { btnSalirClicked = false; if (ordenesTrabajo.Current != null) { using (AEOrdenes aerOrd = new AEOrdenes(ordenesTrabajo.Current.Clone(), "Ver")) if (aerOrd.ShowDialog() == DialogResult.OK) { } } }