public NuevoIngredienteForm(DetalleProductos dp, INGREDIENTE_OPCIONAL_EN_COMANDA relIngProd) { InitializeComponent(); this.parentForm = dp; this.relIngProd = relIngProd; }
/* Metodo dinamico para botones para abrir el nuevo form de manera dinamica */ protected void abrirDetalleProducto(object sender, EventArgs e) { Button button = sender as Button; Console.WriteLine("Identificador del boton " + button.Name); this.Enabled = false; DetalleProductos detalleProfuctosForm = new DetalleProductos(this, Int32.Parse(button.Name)); detalleProfuctosForm.Show(); }