public VNotificacionDetalle(DataGridViewRow row) { InitializeComponent(); FechaVencimientoLabel.Text = row.Cells[0].Value.ToString(); DescripcionLabel.Text = row.Cells[1].Value.ToString(); if (row.Cells[3].Value.ToString() != "0") //Lote { NumeroLoteOPresupuestoLabel.Text = row.Cells[3].Value.ToString(); LoteDTO lote = controladorFachada.BuscarLote(Convert.ToInt32(row.Cells[3].Value)); FechaCompraLabel.Text = lote.FechaCompra.ToString(); CantidadLabel.Text = lote.CantidadProductos.ToString(); ProductoLabel.Text = lote.NombreProducto; AdministrarPresupuesto.Visible = false; } else if (row.Cells[2].Value.ToString() != "0") //Presupuesto { NumeroLoteOPresupuestoLabel.Text = row.Cells[2].Value.ToString(); PresupuestoDTO pres = controladorFachada.BuscarPresupuestoDTO(Convert.ToInt32(row.Cells[2].Value)); FechaCompraLabel.Text = pres.FechaGeneracion.ToString(); NumeroLote.Text = "Numero Presupuesto"; FechaCompra.Text = "Fecha de Creación"; Producto.Visible = false; ProductoLabel.Visible = false; Cantidad.Visible = false; CantidadLabel.Visible = false; EliminarLote.Visible = false; } }