private void Button1_Click(object sender, EventArgs e) { DateTime fecha = localDate; Player pl = new Player(1, textBox1.Text, Convert.ToInt32(puntaje), Convert.ToInt32(tiempo), fecha.ToString()); Sqlite.agregarPlayers(pl); dataGridView1.DataSource = null; dataGridView1.DataSource = jugadores; button1.Enabled = false; dataGridView1.DataSource = jugadores = Sqlite.obtenerPlayers(); }
private void Form2_Load(object sender, EventArgs e) { dataGridView1.DataSource = jugadores = Sqlite.obtenerPlayers(); }