Exemple #1
0
        private void btnNuevoJuego_Click(object sender, System.EventArgs e)
        {
            FormDatosDelJuego datosDelJuego = new FormDatosDelJuego();

            datosDelJuego.ShowDialog();
            games = stdClassCSharp.readJsonFile("games.json");
            if (txtFiltro.Text == "")
            {
                llenarGrid();
            }
            else
            {
                txtFiltro.Text = "";
            }
        }
Exemple #2
0
 private void dataGridView1_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
 {
     if (e.RowIndex >= 0)
     {
         FormDatosDelJuego datosDelJuego = new FormDatosDelJuego(Convert.ToInt32(dataGridView1.Rows[e.RowIndex].Cells["colIndex"].Value));
         datosDelJuego.ShowDialog();
         games = stdClassCSharp.readJsonFile("games.json");
         if (txtFiltro.Text == "")
         {
             llenarGrid();
         }
         else
         {
             txtFiltro.Text = "";
         }
     }
 }