private void button1_Click(object sender, EventArgs e) { Consumo consumo = new Consumo(); ElegirConsumo ec = new ElegirConsumo(consumo.ConsumoCuenta(c.Id)); ec.ShowDialog(); }
private void button1_Click(object sender, EventArgs e) { Consumo c = new Consumo(); List <Consumo> consumos = c.ConsumoCuenta(u.Id); if (consumos.Count <= 0) { MessageBox.Show("No cuenta con ningun registro en su historial de compras.", "Aviso", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } else { Historial h = new Historial(consumos); h.ShowDialog(); } }