private void cb_cuentas_info_SelectedIndexChanged(object sender, EventArgs e) { Cuenta cuenta_aux = lb_cuentas.SelectedItem as Cuenta; tb_acumulado.Text = cuenta_aux.Acumulador_de_puntos().ToString(); Limp(); }
private void button1_Click(object sender, EventArgs e) { List <string> agg = new List <string>(); agg.Add("Puntos agregados con exito."); Cuenta cuenta_aux = lb_cuentas.SelectedItem as Cuenta; tb_acumulado.Text = cuenta_aux.Acumulador_de_puntos().ToString(); lb_info.DataSource = agg; Limpia(); }