示例#1
0
文件: Form2.cs 项目: rpaso93/GUI1
        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();
        }
示例#2
0
文件: Form2.cs 项目: rpaso93/GUI1
 private void Form2_Load(object sender, EventArgs e)
 {
     dataGridView1.DataSource = jugadores = Sqlite.obtenerPlayers();
 }