private void btnALTAS_Click(object sender, EventArgs e) { New_Orden compraDetalle = new New_Orden(new Modelo.Orden_Compra(), "A"); compraDetalle.FormBorderStyle = FormBorderStyle.None; compraDetalle.Add_Item.Enabled = false; DialogResult dr = compraDetalle.ShowDialog(); if (dr == System.Windows.Forms.DialogResult.OK) { ARMA_GRILLA(); } }
private void btnMODIFICACIONES_Click(object sender, EventArgs e) { if (dgvOrdenes.CurrentRow == null) { MessageBox.Show("Debe seleccionar un usuario de la lista", "ATENCION!!"); return; } New_Orden compraDetalle = new New_Orden(cOrden.OBTENER(Convert.ToInt32(dgvOrdenes.CurrentRow.Cells[0].Value)), "M"); compraDetalle.FormBorderStyle = FormBorderStyle.None; //compraDetalle.btn_AddProv.Enabled = false; DialogResult dr = compraDetalle.ShowDialog(); if (dr == System.Windows.Forms.DialogResult.OK) { ARMA_GRILLA(); } }
private void btn_Add_Orden_Click(object sender, EventArgs e) { Form New_Orden = new New_Orden(); New_Orden.Show(); }