Example #1
0
 public Compra_Agregar_Tarjeta(Compra_Detalle anterior, Src.Modelo.Entidades.Cliente cliente)
 {
     this.cliente        = cliente;
     this.previous       = anterior;
     this.compra_detalle = anterior;
     InitializeComponent();
 }
Example #2
0
 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;
 }
Example #3
0
        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);
                }
            }
        }