private void generarPDF(string tipo, int idProduccion) { GenerarPDF form = new GenerarPDF(this, tipo, idProduccion); form.Show(); this.Enabled = false; //Productos }
private void generarPDF() { int idCotizacion = Convert.ToInt32(lista.SelectedRows[0].Cells["ID"].Value.ToString()); String tipo = Login.tipo; GenerarPDF form = new GenerarPDF(this, tipo, idCotizacion, 2); form.Show(); this.Enabled = false; }