private void button1_Click(object sender, EventArgs e) { Form alta = new AbmFactura.AltaFactura(this); alta.Show(); this.Hide(); }
public ListarClientes(AbmFactura.AltaFactura altaFactura) { InitializeComponent(); _altaFactura = altaFactura; cmdEditar.Text = "Seleccionar"; cmdMenu.Hide(); cmdCancelar.Show(); }
private void generarFactura_Click(object sender, EventArgs e) { if (dataGridView1.Rows.Count == 0) { MessageBox.Show("Debe registrar al menos un item ", "error", MessageBoxButtons.OK); return; } Form formularioSiguiente = new AbmFactura.AltaFactura(dataGridView1); formularioSiguiente.Visible = true; this.Visible = false; }