public Compra_Agregar_Tarjeta(Compra_Detalle anterior, Src.Modelo.Entidades.Cliente cliente) { this.cliente = cliente; this.previous = anterior; this.compra_detalle = anterior; InitializeComponent(); }
public Compra_Sin_Numerar(Compra_Detalle compra, int ubicacionId, List <Entrada> entradasCompradas, SortableBindingList <Entrada> entradasDisponibles) { this.previous = compra; this.publicacion = ubicacionId; this.entradasCompradas = entradasCompradas; this.entradasDisponibles = entradasDisponibles; InitializeComponent(); this.loadEntradas(); this.comboBox1.SelectedIndexChanged += comboBox1_SelectedIndexChanged; this.textBox1.TextChanged += textBox1_TextChanged; }
private void btn_buy_Click(object sender, EventArgs e) { if (dataGridPublicaciones.SelectedRows.Count == 0) { MessageBox.Show("Debe seleccionar una publicacion!", "Listado de entradas.", MessageBoxButtons.OK, MessageBoxIcon.Information); } else { try { Compra_Detalle compra_detalle = new Compra_Detalle(this, this.usuario, (Publicacion)this.dataGridPublicaciones.CurrentRow.DataBoundItem); compra_detalle.ShowDialog(); } catch (Exception ex) { Console.WriteLine(ex); } } }