private void btnAgregar_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { frmOrdenCompra ofrmOrden = new frmOrdenCompra("New"); ofrmOrden.FormClosed += ofrmSolicitud_FormClosed; ofrmOrden.ShowDialog(); }
private void LoadSolicitud() { if (currentRow != null) { //String Accion = (Convert.ToInt32(currentRow["IDEstadoOrden"]) == 0) ? "Edit" : "View"; String Accion = "View"; frmOrdenCompra ofrmOrden = new frmOrdenCompra(Convert.ToInt32(currentRow["IDOrdenCompra"]), Accion); ofrmOrden.FormClosed += ofrmSolicitud_FormClosed; ofrmOrden.ShowDialog(); } }