private void btnCortes_Click(object sender, EventArgs e) { frmBuscar_Corte x; x = new frmBuscar_Corte(); x.btnAceptar.Visible = false; x.ShowDialog(); }
private void btnBuscarCorte_Click(object sender, EventArgs e) { frmBuscar_Corte i; i = new frmBuscar_Corte(); i.btnAceptar.Visible = true; i.ShowDialog(); if (i.CorteSeleccionado == null) { MessageBox.Show("La busqueda fue cancelada. "); } else { clsArticuloDeVenta auxiliar; auxiliar = new clsArticuloDeVenta(i.CorteSeleccionado); ArticuloSeleccionadoVentas.Add(auxiliar); int y = lstvDatosVenta.Items.Count; lstvDatosVenta.Items.Add("1"); lstvDatosVenta.Items[y].SubItems.Add(i.CorteSeleccionado.Nombre); lstvDatosVenta.Items[y].SubItems.Add(i.CorteSeleccionado.Precio.ToString()); } }